From d6de3fc4427a70753621f2dfb499ddcd80cdfcc7 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Wed, 18 Oct 2023 10:48:25 +0000 Subject: [PATCH] TASK: Updating SDK --- changes.md | 179 ++++++++- .../ByProjectKeyApiClientsByIDHead.java | 120 ++++++ ...rojectKeyApiClientsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyApiClientsHead.java | 195 +++++++++ .../ByProjectKeyApiClientsRequestBuilder.java | 4 + ...ateByAssociateIdBusinessUnitsByIDHead.java | 140 +++++++ ...iateIdBusinessUnitsByIDRequestBuilder.java | 5 + ...sociateByAssociateIdBusinessUnitsHead.java | 212 ++++++++++ ...yAssociateIdBusinessUnitsKeyByKeyHead.java | 140 +++++++ ...IdBusinessUnitsKeyByKeyRequestBuilder.java | 5 + ...ssociateIdBusinessUnitsRequestBuilder.java | 4 + ...UnitKeyByBusinessUnitKeyCartsByIDHead.java | 158 ++++++++ ...usinessUnitKeyCartsByIDRequestBuilder.java | 5 + ...nessUnitKeyByBusinessUnitKeyCartsHead.java | 235 +++++++++++ ...KeyByBusinessUnitKeyCartsKeyByKeyHead.java | 158 ++++++++ ...essUnitKeyCartsKeyByKeyRequestBuilder.java | 5 + ...yByBusinessUnitKeyCartsRequestBuilder.java | 5 + ...nitKeyByBusinessUnitKeyOrdersByIDHead.java | 158 ++++++++ ...sinessUnitKeyOrdersByIDRequestBuilder.java | 5 + ...essUnitKeyByBusinessUnitKeyOrdersHead.java | 235 +++++++++++ ...KeyOrdersOrderNumberByOrderNumberHead.java | 160 ++++++++ ...rderNumberByOrderNumberRequestBuilder.java | 5 + ...ByBusinessUnitKeyOrdersRequestBuilder.java | 5 + ...yBusinessUnitKeyQuoteRequestsByIDHead.java | 158 ++++++++ ...nitKeyQuoteRequestsByIDRequestBuilder.java | 5 + ...KeyByBusinessUnitKeyQuoteRequestsHead.java | 235 +++++++++++ ...inessUnitKeyQuoteRequestsKeyByKeyHead.java | 159 ++++++++ ...eyQuoteRequestsKeyByKeyRequestBuilder.java | 5 + ...essUnitKeyQuoteRequestsRequestBuilder.java | 5 + ...nitKeyByBusinessUnitKeyQuotesByIDHead.java | 158 ++++++++ ...sinessUnitKeyQuotesByIDRequestBuilder.java | 5 + ...essUnitKeyByBusinessUnitKeyQuotesHead.java | 235 +++++++++++ ...eyByBusinessUnitKeyQuotesKeyByKeyHead.java | 158 ++++++++ ...ssUnitKeyQuotesKeyByKeyRequestBuilder.java | 5 + ...ByBusinessUnitKeyQuotesRequestBuilder.java | 5 + .../ByProjectKeyAssociateRolesByIDHead.java | 120 ++++++ ...ctKeyAssociateRolesByIDRequestBuilder.java | 4 + .../ByProjectKeyAssociateRolesHead.java | 195 +++++++++ ...yProjectKeyAssociateRolesKeyByKeyHead.java | 120 ++++++ ...yAssociateRolesKeyByKeyRequestBuilder.java | 4 + ...rojectKeyAssociateRolesRequestBuilder.java | 4 + .../ByProjectKeyAttributeGroupsByIDHead.java | 120 ++++++ ...tKeyAttributeGroupsByIDRequestBuilder.java | 4 + .../ByProjectKeyAttributeGroupsHead.java | 195 +++++++++ ...ProjectKeyAttributeGroupsKeyByKeyHead.java | 120 ++++++ ...AttributeGroupsKeyByKeyRequestBuilder.java | 4 + ...ojectKeyAttributeGroupsRequestBuilder.java | 4 + .../ByProjectKeyBusinessUnitsByIDHead.java | 120 ++++++ ...ectKeyBusinessUnitsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyBusinessUnitsHead.java | 195 +++++++++ ...ByProjectKeyBusinessUnitsKeyByKeyHead.java | 120 ++++++ ...eyBusinessUnitsKeyByKeyRequestBuilder.java | 4 + ...ProjectKeyBusinessUnitsRequestBuilder.java | 4 + .../ByProjectKeyCartDiscountsByIDHead.java | 120 ++++++ ...ectKeyCartDiscountsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyCartDiscountsHead.java | 195 +++++++++ ...ByProjectKeyCartDiscountsKeyByKeyHead.java | 120 ++++++ ...eyCartDiscountsKeyByKeyRequestBuilder.java | 4 + ...ProjectKeyCartDiscountsRequestBuilder.java | 4 + .../api/client/ByProjectKeyCartsByIDHead.java | 120 ++++++ .../ByProjectKeyCartsByIDRequestBuilder.java | 4 + ...ectKeyCartsCustomerIdByCustomerIdHead.java | 121 ++++++ ...sCustomerIdByCustomerIdRequestBuilder.java | 4 + .../api/client/ByProjectKeyCartsHead.java | 194 +++++++++ .../client/ByProjectKeyCartsKeyByKeyHead.java | 120 ++++++ ...ProjectKeyCartsKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyCartsRequestBuilder.java | 4 + .../ByProjectKeyCategoriesByIDHead.java | 120 ++++++ ...rojectKeyCategoriesByIDRequestBuilder.java | 4 + .../client/ByProjectKeyCategoriesHead.java | 195 +++++++++ .../ByProjectKeyCategoriesKeyByKeyHead.java | 120 ++++++ ...ctKeyCategoriesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyCategoriesRequestBuilder.java | 4 + .../client/ByProjectKeyChannelsByIDHead.java | 120 ++++++ ...yProjectKeyChannelsByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyChannelsHead.java | 195 +++++++++ .../ByProjectKeyChannelsRequestBuilder.java | 4 + .../client/ByProjectKeyCustomObjectsHead.java | 195 +++++++++ ...ProjectKeyCustomObjectsRequestBuilder.java | 4 + .../ByProjectKeyCustomerGroupsByIDHead.java | 120 ++++++ ...ctKeyCustomerGroupsByIDRequestBuilder.java | 4 + .../ByProjectKeyCustomerGroupsHead.java | 195 +++++++++ ...yProjectKeyCustomerGroupsKeyByKeyHead.java | 120 ++++++ ...yCustomerGroupsKeyByKeyRequestBuilder.java | 4 + ...rojectKeyCustomerGroupsRequestBuilder.java | 4 + .../client/ByProjectKeyCustomersByIDHead.java | 120 ++++++ ...ProjectKeyCustomersByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyCustomersHead.java | 195 +++++++++ .../ByProjectKeyCustomersKeyByKeyHead.java | 120 ++++++ ...ectKeyCustomersKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyCustomersRequestBuilder.java | 4 + .../ByProjectKeyDiscountCodesByIDHead.java | 120 ++++++ ...ectKeyDiscountCodesByIDRequestBuilder.java | 4 + .../client/ByProjectKeyDiscountCodesHead.java | 195 +++++++++ ...ProjectKeyDiscountCodesRequestBuilder.java | 4 + .../ByProjectKeyExtensionsByIDHead.java | 120 ++++++ ...rojectKeyExtensionsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyExtensionsHead.java | 195 +++++++++ .../ByProjectKeyExtensionsKeyByKeyHead.java | 120 ++++++ ...ctKeyExtensionsKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyExtensionsRequestBuilder.java | 4 + .../api/client/ByProjectKeyHead.java | 104 +++++ ...oreKeyByStoreKeyCartDiscountsByIDHead.java | 138 +++++++ ...oreKeyCartDiscountsByIDRequestBuilder.java | 4 + ...InStoreKeyByStoreKeyCartDiscountsHead.java | 207 ++++++++++ ...eyByStoreKeyCartDiscountsKeyByKeyHead.java | 139 +++++++ ...eyCartDiscountsKeyByKeyRequestBuilder.java | 4 + ...ByStoreKeyCartDiscountsRequestBuilder.java | 4 + ...tKeyInStoreKeyByStoreKeyCartsByIDHead.java | 136 +++++++ ...eKeyByStoreKeyCartsByIDRequestBuilder.java | 4 + ...oreKeyCartsCustomerIdByCustomerIdHead.java | 139 +++++++ ...sCustomerIdByCustomerIdRequestBuilder.java | 5 + ...ojectKeyInStoreKeyByStoreKeyCartsHead.java | 208 ++++++++++ ...InStoreKeyByStoreKeyCartsKeyByKeyHead.java | 137 +++++++ ...ByStoreKeyCartsKeyByKeyRequestBuilder.java | 4 + ...StoreKeyByStoreKeyCartsRequestBuilder.java | 4 + ...InStoreKeyByStoreKeyCustomersByIDHead.java | 137 +++++++ ...ByStoreKeyCustomersByIDRequestBuilder.java | 4 + ...tKeyInStoreKeyByStoreKeyCustomersHead.java | 208 ++++++++++ ...oreKeyByStoreKeyCustomersKeyByKeyHead.java | 138 +++++++ ...oreKeyCustomersKeyByKeyRequestBuilder.java | 4 + ...eKeyByStoreKeyCustomersRequestBuilder.java | 4 + ...yInStoreKeyByStoreKeyMeActiveCartHead.java | 122 ++++++ ...yByStoreKeyMeActiveCartRequestBuilder.java | 4 + ...eyInStoreKeyByStoreKeyMeCartsByIDHead.java | 138 +++++++ ...eyByStoreKeyMeCartsByIDRequestBuilder.java | 4 + ...ectKeyInStoreKeyByStoreKeyMeCartsHead.java | 209 ++++++++++ ...oreKeyByStoreKeyMeCartsRequestBuilder.java | 4 + ...yInStoreKeyByStoreKeyMeOrdersByIDHead.java | 138 +++++++ ...yByStoreKeyMeOrdersByIDRequestBuilder.java | 4 + ...ctKeyInStoreKeyByStoreKeyMeOrdersHead.java | 209 ++++++++++ ...reKeyByStoreKeyMeOrdersRequestBuilder.java | 4 + ...eKeyByStoreKeyMeShoppingListsByIDHead.java | 139 +++++++ ...eKeyMeShoppingListsByIDRequestBuilder.java | 4 + ...StoreKeyByStoreKeyMeShoppingListsHead.java | 211 ++++++++++ ...ByStoreKeyMeShoppingListsKeyByKeyHead.java | 140 +++++++ ...MeShoppingListsKeyByKeyRequestBuilder.java | 5 + ...StoreKeyMeShoppingListsRequestBuilder.java | 4 + ...KeyInStoreKeyByStoreKeyOrdersByIDHead.java | 136 +++++++ ...KeyByStoreKeyOrdersByIDRequestBuilder.java | 4 + ...jectKeyInStoreKeyByStoreKeyOrdersHead.java | 208 ++++++++++ ...KeyOrdersOrderNumberByOrderNumberHead.java | 139 +++++++ ...rderNumberByOrderNumberRequestBuilder.java | 5 + ...toreKeyByStoreKeyOrdersRequestBuilder.java | 4 + ...yByStoreKeyProductProjectionsByIDHead.java | 139 +++++++ ...yProductProjectionsByIDRequestBuilder.java | 4 + ...toreKeyProductProjectionsKeyByKeyHead.java | 139 +++++++ ...ductProjectionsKeyByKeyRequestBuilder.java | 5 + ...oreKeyShippingMethodsMatchingCartHead.java | 217 ++++++++++ ...pingMethodsMatchingCartRequestBuilder.java | 4 + ...oreKeyByStoreKeyShoppingListsByIDHead.java | 138 +++++++ ...oreKeyShoppingListsByIDRequestBuilder.java | 4 + ...InStoreKeyByStoreKeyShoppingListsHead.java | 209 ++++++++++ ...eyByStoreKeyShoppingListsKeyByKeyHead.java | 139 +++++++ ...eyShoppingListsKeyByKeyRequestBuilder.java | 4 + ...ByStoreKeyShoppingListsRequestBuilder.java | 4 + .../client/ByProjectKeyInventoryByIDHead.java | 120 ++++++ ...ProjectKeyInventoryByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyInventoryHead.java | 195 +++++++++ .../ByProjectKeyInventoryKeyByKeyHead.java | 120 ++++++ ...ectKeyInventoryKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyInventoryRequestBuilder.java | 4 + .../client/ByProjectKeyMeActiveCartHead.java | 109 +++++ ...yProjectKeyMeActiveCartRequestBuilder.java | 4 + .../ByProjectKeyMeBusinessUnitsByIDHead.java | 121 ++++++ ...tKeyMeBusinessUnitsByIDRequestBuilder.java | 4 + .../ByProjectKeyMeBusinessUnitsHead.java | 196 +++++++++ ...ProjectKeyMeBusinessUnitsKeyByKeyHead.java | 121 ++++++ ...MeBusinessUnitsKeyByKeyRequestBuilder.java | 4 + ...ojectKeyMeBusinessUnitsRequestBuilder.java | 4 + .../client/ByProjectKeyMeCartsByIDHead.java | 121 ++++++ ...ByProjectKeyMeCartsByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyMeCartsHead.java | 196 +++++++++ .../ByProjectKeyMeCartsKeyByKeyHead.java | 121 ++++++ ...ojectKeyMeCartsKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyMeCartsRequestBuilder.java | 4 + .../client/ByProjectKeyMeOrdersByIDHead.java | 121 ++++++ ...yProjectKeyMeOrdersByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyMeOrdersHead.java | 196 +++++++++ .../ByProjectKeyMeOrdersRequestBuilder.java | 4 + .../ByProjectKeyMePaymentsByIDHead.java | 121 ++++++ ...rojectKeyMePaymentsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyMePaymentsHead.java | 196 +++++++++ .../ByProjectKeyMePaymentsRequestBuilder.java | 4 + .../ByProjectKeyMeQuoteRequestsByIDHead.java | 121 ++++++ ...tKeyMeQuoteRequestsByIDRequestBuilder.java | 4 + .../ByProjectKeyMeQuoteRequestsHead.java | 196 +++++++++ ...ProjectKeyMeQuoteRequestsKeyByKeyHead.java | 121 ++++++ ...MeQuoteRequestsKeyByKeyRequestBuilder.java | 4 + ...ojectKeyMeQuoteRequestsRequestBuilder.java | 4 + .../client/ByProjectKeyMeQuotesByIDHead.java | 121 ++++++ ...yProjectKeyMeQuotesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyMeQuotesHead.java | 196 +++++++++ .../ByProjectKeyMeQuotesKeyByKeyHead.java | 121 ++++++ ...jectKeyMeQuotesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyMeQuotesRequestBuilder.java | 4 + .../ByProjectKeyMeShoppingListsByIDHead.java | 121 ++++++ ...tKeyMeShoppingListsByIDRequestBuilder.java | 4 + .../ByProjectKeyMeShoppingListsHead.java | 196 +++++++++ ...ProjectKeyMeShoppingListsKeyByKeyHead.java | 121 ++++++ ...MeShoppingListsKeyByKeyRequestBuilder.java | 4 + ...ojectKeyMeShoppingListsRequestBuilder.java | 4 + .../client/ByProjectKeyMessagesByIDHead.java | 120 ++++++ ...yProjectKeyMessagesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyMessagesHead.java | 195 +++++++++ .../ByProjectKeyMessagesRequestBuilder.java | 4 + .../client/ByProjectKeyOrdersByIDHead.java | 120 ++++++ .../ByProjectKeyOrdersByIDRequestBuilder.java | 4 + .../ByProjectKeyOrdersEditsByIDHead.java | 121 ++++++ ...ojectKeyOrdersEditsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyOrdersEditsHead.java | 196 +++++++++ .../ByProjectKeyOrdersEditsKeyByKeyHead.java | 121 ++++++ ...tKeyOrdersEditsKeyByKeyRequestBuilder.java | 4 + ...ByProjectKeyOrdersEditsRequestBuilder.java | 4 + .../api/client/ByProjectKeyOrdersHead.java | 195 +++++++++ ...KeyOrdersOrderNumberByOrderNumberHead.java | 121 ++++++ ...rderNumberByOrderNumberRequestBuilder.java | 4 + .../ByProjectKeyOrdersRequestBuilder.java | 4 + .../client/ByProjectKeyPaymentsByIDHead.java | 120 ++++++ ...yProjectKeyPaymentsByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyPaymentsHead.java | 195 +++++++++ .../ByProjectKeyPaymentsKeyByKeyHead.java | 120 ++++++ ...jectKeyPaymentsKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyPaymentsRequestBuilder.java | 4 + .../ByProjectKeyProductDiscountsByIDHead.java | 120 ++++++ ...KeyProductDiscountsByIDRequestBuilder.java | 4 + .../ByProjectKeyProductDiscountsHead.java | 195 +++++++++ ...rojectKeyProductDiscountsKeyByKeyHead.java | 120 ++++++ ...roductDiscountsKeyByKeyRequestBuilder.java | 4 + ...jectKeyProductDiscountsRequestBuilder.java | 4 + ...yProjectKeyProductProjectionsByIDHead.java | 120 ++++++ ...yProductProjectionsByIDRequestBuilder.java | 4 + .../ByProjectKeyProductProjectionsHead.java | 195 +++++++++ ...jectKeyProductProjectionsKeyByKeyHead.java | 121 ++++++ ...ductProjectionsKeyByKeyRequestBuilder.java | 4 + ...ctKeyProductProjectionsRequestBuilder.java | 4 + ...ByProjectKeyProductSelectionsByIDHead.java | 120 ++++++ ...eyProductSelectionsByIDRequestBuilder.java | 4 + .../ByProjectKeyProductSelectionsHead.java | 195 +++++++++ ...ojectKeyProductSelectionsKeyByKeyHead.java | 120 ++++++ ...oductSelectionsKeyByKeyRequestBuilder.java | 4 + ...ectKeyProductSelectionsRequestBuilder.java | 4 + .../ByProjectKeyProductTypesByIDHead.java | 2 +- .../client/ByProjectKeyProductTypesHead.java | 2 +- .../ByProjectKeyProductTypesKeyByKeyHead.java | 2 +- .../client/ByProjectKeyProductsByIDHead.java | 2 +- .../api/client/ByProjectKeyProductsHead.java | 2 +- .../ByProjectKeyProductsKeyByKeyHead.java | 2 +- .../ByProjectKeyQuoteRequestsByIDHead.java | 120 ++++++ ...ectKeyQuoteRequestsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyQuoteRequestsHead.java | 195 +++++++++ ...ByProjectKeyQuoteRequestsKeyByKeyHead.java | 120 ++++++ ...eyQuoteRequestsKeyByKeyRequestBuilder.java | 4 + ...ProjectKeyQuoteRequestsRequestBuilder.java | 4 + .../client/ByProjectKeyQuotesByIDHead.java | 120 ++++++ .../ByProjectKeyQuotesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyQuotesHead.java | 195 +++++++++ .../ByProjectKeyQuotesKeyByKeyHead.java | 120 ++++++ ...rojectKeyQuotesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyQuotesRequestBuilder.java | 4 + .../client/ByProjectKeyRequestBuilder.java | 4 + .../client/ByProjectKeyReviewsByIDHead.java | 120 ++++++ ...ByProjectKeyReviewsByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyReviewsHead.java | 195 +++++++++ .../ByProjectKeyReviewsKeyByKeyHead.java | 120 ++++++ ...ojectKeyReviewsKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyReviewsRequestBuilder.java | 4 + .../ByProjectKeyShippingMethodsByIDHead.java | 120 ++++++ ...tKeyShippingMethodsByIDRequestBuilder.java | 4 + .../ByProjectKeyShippingMethodsHead.java | 195 +++++++++ ...ProjectKeyShippingMethodsKeyByKeyHead.java | 120 ++++++ ...ShippingMethodsKeyByKeyRequestBuilder.java | 4 + ...ectKeyShippingMethodsMatchingCartHead.java | 197 ++++++++++ ...ippingMethodsMatchingCartLocationHead.java | 370 +++++++++++++++++ ...odsMatchingCartLocationRequestBuilder.java | 4 + ...pingMethodsMatchingCartRequestBuilder.java | 4 + ...eyShippingMethodsMatchingLocationHead.java | 367 +++++++++++++++++ ...MethodsMatchingLocationRequestBuilder.java | 4 + ...yShippingMethodsMatchingOrdereditHead.java | 371 ++++++++++++++++++ ...ethodsMatchingOrdereditRequestBuilder.java | 4 + ...ojectKeyShippingMethodsRequestBuilder.java | 4 + .../ByProjectKeyShoppingListsByIDHead.java | 120 ++++++ ...ectKeyShoppingListsByIDRequestBuilder.java | 4 + .../client/ByProjectKeyShoppingListsHead.java | 195 +++++++++ ...ByProjectKeyShoppingListsKeyByKeyHead.java | 120 ++++++ ...eyShoppingListsKeyByKeyRequestBuilder.java | 4 + ...ProjectKeyShoppingListsRequestBuilder.java | 4 + .../ByProjectKeyStagedQuotesByIDHead.java | 120 ++++++ ...jectKeyStagedQuotesByIDRequestBuilder.java | 4 + .../client/ByProjectKeyStagedQuotesHead.java | 195 +++++++++ .../ByProjectKeyStagedQuotesKeyByKeyHead.java | 120 ++++++ ...KeyStagedQuotesKeyByKeyRequestBuilder.java | 4 + ...yProjectKeyStagedQuotesRequestBuilder.java | 4 + .../ByProjectKeyStandalonePricesByIDHead.java | 120 ++++++ ...KeyStandalonePricesByIDRequestBuilder.java | 4 + .../ByProjectKeyStandalonePricesHead.java | 195 +++++++++ ...rojectKeyStandalonePricesKeyByKeyHead.java | 120 ++++++ ...tandalonePricesKeyByKeyRequestBuilder.java | 4 + ...jectKeyStandalonePricesRequestBuilder.java | 4 + .../client/ByProjectKeyStatesByIDHead.java | 120 ++++++ .../ByProjectKeyStatesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyStatesHead.java | 195 +++++++++ .../ByProjectKeyStatesKeyByKeyHead.java | 120 ++++++ ...rojectKeyStatesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyStatesRequestBuilder.java | 4 + .../client/ByProjectKeyStoresByIDHead.java | 120 ++++++ .../ByProjectKeyStoresByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyStoresHead.java | 195 +++++++++ .../ByProjectKeyStoresKeyByKeyHead.java | 120 ++++++ ...rojectKeyStoresKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyStoresRequestBuilder.java | 4 + .../ByProjectKeySubscriptionsByIDHead.java | 120 ++++++ ...ectKeySubscriptionsByIDRequestBuilder.java | 4 + .../client/ByProjectKeySubscriptionsHead.java | 195 +++++++++ ...ByProjectKeySubscriptionsKeyByKeyHead.java | 120 ++++++ ...eySubscriptionsKeyByKeyRequestBuilder.java | 4 + ...ProjectKeySubscriptionsRequestBuilder.java | 4 + .../ByProjectKeyTaxCategoriesByIDHead.java | 120 ++++++ ...ectKeyTaxCategoriesByIDRequestBuilder.java | 4 + .../client/ByProjectKeyTaxCategoriesHead.java | 195 +++++++++ ...ByProjectKeyTaxCategoriesKeyByKeyHead.java | 120 ++++++ ...eyTaxCategoriesKeyByKeyRequestBuilder.java | 4 + ...ProjectKeyTaxCategoriesRequestBuilder.java | 4 + .../api/client/ByProjectKeyTypesByIDHead.java | 120 ++++++ .../ByProjectKeyTypesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyTypesHead.java | 194 +++++++++ .../client/ByProjectKeyTypesKeyByKeyHead.java | 120 ++++++ ...ProjectKeyTypesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyTypesRequestBuilder.java | 4 + .../api/client/ByProjectKeyZonesByIDHead.java | 120 ++++++ .../ByProjectKeyZonesByIDRequestBuilder.java | 4 + .../api/client/ByProjectKeyZonesHead.java | 194 +++++++++ .../client/ByProjectKeyZonesKeyByKeyHead.java | 120 ++++++ ...ProjectKeyZonesKeyByKeyRequestBuilder.java | 4 + .../ByProjectKeyZonesRequestBuilder.java | 4 + .../ByProjectKeyApiClientsByIDTest.java | 6 + .../resource/ByProjectKeyApiClientsTest.java | 9 + ...ateByAssociateIdBusinessUnitsByIDTest.java | 15 + ...yAssociateIdBusinessUnitsKeyByKeyTest.java | 15 + ...sociateByAssociateIdBusinessUnitsTest.java | 28 ++ ...UnitKeyByBusinessUnitKeyCartsByIDTest.java | 18 + ...KeyByBusinessUnitKeyCartsKeyByKeyTest.java | 18 + ...nessUnitKeyByBusinessUnitKeyCartsTest.java | 34 ++ ...nitKeyByBusinessUnitKeyOrdersByIDTest.java | 18 + ...KeyOrdersOrderNumberByOrderNumberTest.java | 18 + ...essUnitKeyByBusinessUnitKeyOrdersTest.java | 34 ++ ...yBusinessUnitKeyQuoteRequestsByIDTest.java | 18 + ...inessUnitKeyQuoteRequestsKeyByKeyTest.java | 18 + ...KeyByBusinessUnitKeyQuoteRequestsTest.java | 34 ++ ...nitKeyByBusinessUnitKeyQuotesByIDTest.java | 18 + ...eyByBusinessUnitKeyQuotesKeyByKeyTest.java | 18 + ...essUnitKeyByBusinessUnitKeyQuotesTest.java | 36 +- .../ByProjectKeyAssociateRolesByIDTest.java | 6 + ...yProjectKeyAssociateRolesKeyByKeyTest.java | 6 + .../ByProjectKeyAssociateRolesTest.java | 9 + .../ByProjectKeyAttributeGroupsByIDTest.java | 6 + ...ProjectKeyAttributeGroupsKeyByKeyTest.java | 7 + .../ByProjectKeyAttributeGroupsTest.java | 9 + .../ByProjectKeyBusinessUnitsByIDTest.java | 6 + ...ByProjectKeyBusinessUnitsKeyByKeyTest.java | 6 + .../ByProjectKeyBusinessUnitsTest.java | 9 + .../ByProjectKeyCartDiscountsByIDTest.java | 6 + ...ByProjectKeyCartDiscountsKeyByKeyTest.java | 6 + .../ByProjectKeyCartDiscountsTest.java | 9 + .../resource/ByProjectKeyCartsByIDTest.java | 4 + ...ectKeyCartsCustomerIdByCustomerIdTest.java | 11 +- .../ByProjectKeyCartsKeyByKeyTest.java | 6 + .../resource/ByProjectKeyCartsTest.java | 7 + .../ByProjectKeyCategoriesByIDTest.java | 6 + .../ByProjectKeyCategoriesKeyByKeyTest.java | 6 + .../resource/ByProjectKeyCategoriesTest.java | 9 + .../ByProjectKeyChannelsByIDTest.java | 6 + .../resource/ByProjectKeyChannelsTest.java | 9 + .../ByProjectKeyCustomObjectsTest.java | 9 + .../ByProjectKeyCustomerGroupsByIDTest.java | 6 + ...yProjectKeyCustomerGroupsKeyByKeyTest.java | 6 + .../ByProjectKeyCustomerGroupsTest.java | 9 + .../ByProjectKeyCustomersByIDTest.java | 6 + .../ByProjectKeyCustomersKeyByKeyTest.java | 6 + .../resource/ByProjectKeyCustomersTest.java | 9 + .../ByProjectKeyDiscountCodesByIDTest.java | 6 + .../ByProjectKeyDiscountCodesTest.java | 9 + .../ByProjectKeyExtensionsByIDTest.java | 6 + .../ByProjectKeyExtensionsKeyByKeyTest.java | 6 + .../resource/ByProjectKeyExtensionsTest.java | 9 + ...oreKeyByStoreKeyCartDiscountsByIDTest.java | 13 + ...eyByStoreKeyCartDiscountsKeyByKeyTest.java | 13 + ...InStoreKeyByStoreKeyCartDiscountsTest.java | 24 ++ ...tKeyInStoreKeyByStoreKeyCartsByIDTest.java | 13 + ...oreKeyCartsCustomerIdByCustomerIdTest.java | 17 +- ...InStoreKeyByStoreKeyCartsKeyByKeyTest.java | 13 + ...ojectKeyInStoreKeyByStoreKeyCartsTest.java | 22 ++ ...InStoreKeyByStoreKeyCustomersByIDTest.java | 13 + ...oreKeyByStoreKeyCustomersKeyByKeyTest.java | 13 + ...tKeyInStoreKeyByStoreKeyCustomersTest.java | 22 ++ ...yInStoreKeyByStoreKeyMeActiveCartTest.java | 17 +- ...eyInStoreKeyByStoreKeyMeCartsByIDTest.java | 15 + ...ectKeyInStoreKeyByStoreKeyMeCartsTest.java | 26 ++ ...yInStoreKeyByStoreKeyMeOrdersByIDTest.java | 19 +- ...ctKeyInStoreKeyByStoreKeyMeOrdersTest.java | 26 ++ ...eKeyByStoreKeyMeShoppingListsByIDTest.java | 15 + ...ByStoreKeyMeShoppingListsKeyByKeyTest.java | 15 + ...StoreKeyByStoreKeyMeShoppingListsTest.java | 28 ++ ...KeyInStoreKeyByStoreKeyOrdersByIDTest.java | 13 + ...KeyOrdersOrderNumberByOrderNumberTest.java | 13 + ...jectKeyInStoreKeyByStoreKeyOrdersTest.java | 22 ++ ...yByStoreKeyProductProjectionsByIDTest.java | 17 +- ...toreKeyProductProjectionsKeyByKeyTest.java | 17 +- ...oreKeyShippingMethodsMatchingCartTest.java | 33 +- ...oreKeyByStoreKeyShoppingListsByIDTest.java | 13 + ...eyByStoreKeyShoppingListsKeyByKeyTest.java | 13 + ...InStoreKeyByStoreKeyShoppingListsTest.java | 24 ++ .../ByProjectKeyInventoryByIDTest.java | 6 + .../ByProjectKeyInventoryKeyByKeyTest.java | 6 + .../resource/ByProjectKeyInventoryTest.java | 9 + .../ByProjectKeyMeActiveCartTest.java | 7 +- .../ByProjectKeyMeBusinessUnitsByIDTest.java | 8 + ...ProjectKeyMeBusinessUnitsKeyByKeyTest.java | 8 + .../ByProjectKeyMeBusinessUnitsTest.java | 12 + .../resource/ByProjectKeyMeCartsByIDTest.java | 7 + .../ByProjectKeyMeCartsKeyByKeyTest.java | 7 + .../resource/ByProjectKeyMeCartsTest.java | 10 + .../ByProjectKeyMeOrdersByIDTest.java | 11 +- .../resource/ByProjectKeyMeOrdersTest.java | 10 + .../ByProjectKeyMePaymentsByIDTest.java | 7 + .../resource/ByProjectKeyMePaymentsTest.java | 10 + .../ByProjectKeyMeQuoteRequestsByIDTest.java | 8 + ...ProjectKeyMeQuoteRequestsKeyByKeyTest.java | 8 + .../ByProjectKeyMeQuoteRequestsTest.java | 12 + .../ByProjectKeyMeQuotesByIDTest.java | 7 + .../ByProjectKeyMeQuotesKeyByKeyTest.java | 7 + .../resource/ByProjectKeyMeQuotesTest.java | 14 +- .../ByProjectKeyMeShoppingListsByIDTest.java | 8 + ...ProjectKeyMeShoppingListsKeyByKeyTest.java | 8 + .../ByProjectKeyMeShoppingListsTest.java | 12 + .../ByProjectKeyMessagesByIDTest.java | 10 +- .../resource/ByProjectKeyMessagesTest.java | 11 +- .../resource/ByProjectKeyOrdersByIDTest.java | 4 + .../ByProjectKeyOrdersEditsByIDTest.java | 7 + .../ByProjectKeyOrdersEditsKeyByKeyTest.java | 7 + .../resource/ByProjectKeyOrdersEditsTest.java | 10 + ...KeyOrdersOrderNumberByOrderNumberTest.java | 9 + .../resource/ByProjectKeyOrdersTest.java | 9 + .../ByProjectKeyPaymentsByIDTest.java | 6 + .../ByProjectKeyPaymentsKeyByKeyTest.java | 6 + .../resource/ByProjectKeyPaymentsTest.java | 9 + .../ByProjectKeyProductDiscountsByIDTest.java | 6 + ...rojectKeyProductDiscountsKeyByKeyTest.java | 7 + .../ByProjectKeyProductDiscountsTest.java | 10 + ...yProjectKeyProductProjectionsByIDTest.java | 11 +- ...jectKeyProductProjectionsKeyByKeyTest.java | 11 +- .../ByProjectKeyProductProjectionsTest.java | 15 +- ...ByProjectKeyProductSelectionsByIDTest.java | 7 + ...ojectKeyProductSelectionsKeyByKeyTest.java | 7 + .../ByProjectKeyProductSelectionsTest.java | 10 + .../ByProjectKeyQuoteRequestsByIDTest.java | 6 + ...ByProjectKeyQuoteRequestsKeyByKeyTest.java | 6 + .../ByProjectKeyQuoteRequestsTest.java | 9 + .../resource/ByProjectKeyQuotesByIDTest.java | 4 + .../ByProjectKeyQuotesKeyByKeyTest.java | 6 + .../resource/ByProjectKeyQuotesTest.java | 9 + .../resource/ByProjectKeyReviewsByIDTest.java | 6 + .../ByProjectKeyReviewsKeyByKeyTest.java | 6 + .../resource/ByProjectKeyReviewsTest.java | 9 + .../ByProjectKeyShippingMethodsByIDTest.java | 6 + ...ProjectKeyShippingMethodsKeyByKeyTest.java | 7 + ...ippingMethodsMatchingCartLocationTest.java | 52 ++- ...ectKeyShippingMethodsMatchingCartTest.java | 23 +- ...eyShippingMethodsMatchingLocationTest.java | 49 ++- ...yShippingMethodsMatchingOrdereditTest.java | 51 ++- .../ByProjectKeyShippingMethodsTest.java | 9 + .../ByProjectKeyShoppingListsByIDTest.java | 6 + ...ByProjectKeyShoppingListsKeyByKeyTest.java | 6 + .../ByProjectKeyShoppingListsTest.java | 9 + .../ByProjectKeyStagedQuotesByIDTest.java | 6 + .../ByProjectKeyStagedQuotesKeyByKeyTest.java | 6 + .../ByProjectKeyStagedQuotesTest.java | 9 + .../ByProjectKeyStandalonePricesByIDTest.java | 6 + ...rojectKeyStandalonePricesKeyByKeyTest.java | 7 + .../ByProjectKeyStandalonePricesTest.java | 10 + .../resource/ByProjectKeyStatesByIDTest.java | 4 + .../ByProjectKeyStatesKeyByKeyTest.java | 6 + .../resource/ByProjectKeyStatesTest.java | 9 + .../resource/ByProjectKeyStoresByIDTest.java | 4 + .../ByProjectKeyStoresKeyByKeyTest.java | 6 + .../resource/ByProjectKeyStoresTest.java | 9 + .../ByProjectKeySubscriptionsByIDTest.java | 6 + ...ByProjectKeySubscriptionsKeyByKeyTest.java | 6 + .../ByProjectKeySubscriptionsTest.java | 9 + .../ByProjectKeyTaxCategoriesByIDTest.java | 6 + ...ByProjectKeyTaxCategoriesKeyByKeyTest.java | 6 + .../ByProjectKeyTaxCategoriesTest.java | 9 + .../api/client/resource/ByProjectKeyTest.java | 3 + .../resource/ByProjectKeyTypesByIDTest.java | 4 + .../ByProjectKeyTypesKeyByKeyTest.java | 6 + .../resource/ByProjectKeyTypesTest.java | 7 + .../resource/ByProjectKeyZonesByIDTest.java | 4 + .../ByProjectKeyZonesKeyByKeyTest.java | 6 + .../resource/ByProjectKeyZonesTest.java | 7 + references.txt | 1 + 500 files changed, 28293 insertions(+), 58 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java diff --git a/changes.md b/changes.md index a20dae985fc..7cc3fb3ad49 100644 --- a/changes.md +++ b/changes.md @@ -1,20 +1,171 @@ **Api changes**
-Added Enum(s) +Added Method(s) -- added enum `customer-email-token` to type `ReferenceTypeId` -- added enum `customer-password-token` to type `ReferenceTypeId` -- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId` -- added enum `customer-group` to type `MessageSubscriptionResourceTypeId` -- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId` -
- - -
-Added Type(s) - -- added type `CustomerEmailTokenReference` -- added type `CustomerPasswordTokenReference` +- added method `apiRoot.withProjectKey().head()` +- added method `apiRoot.withProjectKey().associateRoles().head()` +- added method `apiRoot.withProjectKey().businessUnits().head()` +- added method `apiRoot.withProjectKey().categories().head()` +- added method `apiRoot.withProjectKey().carts().head()` +- added method `apiRoot.withProjectKey().cartDiscounts().head()` +- added method `apiRoot.withProjectKey().channels().head()` +- added method `apiRoot.withProjectKey().customers().head()` +- added method `apiRoot.withProjectKey().customerGroups().head()` +- added method `apiRoot.withProjectKey().customObjects().head()` +- added method `apiRoot.withProjectKey().discountCodes().head()` +- added method `apiRoot.withProjectKey().inventory().head()` +- added method `apiRoot.withProjectKey().messages().head()` +- added method `apiRoot.withProjectKey().orders().head()` +- added method `apiRoot.withProjectKey().payments().head()` +- added method `apiRoot.withProjectKey().productDiscounts().head()` +- added method `apiRoot.withProjectKey().productProjections().head()` +- added method `apiRoot.withProjectKey().productSelections().head()` +- added method `apiRoot.withProjectKey().quotes().head()` +- added method `apiRoot.withProjectKey().quoteRequests().head()` +- added method `apiRoot.withProjectKey().stagedQuotes().head()` +- added method `apiRoot.withProjectKey().reviews().head()` +- added method `apiRoot.withProjectKey().shippingMethods().head()` +- added method `apiRoot.withProjectKey().shoppingLists().head()` +- added method `apiRoot.withProjectKey().states().head()` +- added method `apiRoot.withProjectKey().subscriptions().head()` +- added method `apiRoot.withProjectKey().taxCategories().head()` +- added method `apiRoot.withProjectKey().types().head()` +- added method `apiRoot.withProjectKey().zones().head()` +- added method `apiRoot.withProjectKey().extensions().head()` +- added method `apiRoot.withProjectKey().apiClients().head()` +- added method `apiRoot.withProjectKey().stores().head()` +- added method `apiRoot.withProjectKey().standalonePrices().head()` +- added method `apiRoot.withProjectKey().attributeGroups().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().head()` +- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().head()` +- added method `apiRoot.withProjectKey().associateRoles().withKey().head()` +- added method `apiRoot.withProjectKey().associateRoles().withId().head()` +- added method `apiRoot.withProjectKey().businessUnits().withKey().head()` +- added method `apiRoot.withProjectKey().businessUnits().withId().head()` +- added method `apiRoot.withProjectKey().categories().withKey().head()` +- added method `apiRoot.withProjectKey().categories().withId().head()` +- added method `apiRoot.withProjectKey().carts().withCustomerId().head()` +- added method `apiRoot.withProjectKey().carts().withKey().head()` +- added method `apiRoot.withProjectKey().carts().withId().head()` +- added method `apiRoot.withProjectKey().cartDiscounts().withKey().head()` +- added method `apiRoot.withProjectKey().cartDiscounts().withId().head()` +- added method `apiRoot.withProjectKey().channels().withId().head()` +- added method `apiRoot.withProjectKey().customers().withKey().head()` +- added method `apiRoot.withProjectKey().customers().withId().head()` +- added method `apiRoot.withProjectKey().customerGroups().withKey().head()` +- added method `apiRoot.withProjectKey().customerGroups().withId().head()` +- added method `apiRoot.withProjectKey().discountCodes().withId().head()` +- added method `apiRoot.withProjectKey().inventory().withId().head()` +- added method `apiRoot.withProjectKey().inventory().withKey().head()` +- added method `apiRoot.withProjectKey().messages().withId().head()` +- added method `apiRoot.withProjectKey().orders().withOrderNumber().head()` +- added method `apiRoot.withProjectKey().orders().edits().head()` +- added method `apiRoot.withProjectKey().orders().withId().head()` +- added method `apiRoot.withProjectKey().orders().edits().withKey().head()` +- added method `apiRoot.withProjectKey().orders().edits().withId().head()` +- added method `apiRoot.withProjectKey().payments().withKey().head()` +- added method `apiRoot.withProjectKey().payments().withId().head()` +- added method `apiRoot.withProjectKey().productDiscounts().withKey().head()` +- added method `apiRoot.withProjectKey().productDiscounts().withId().head()` +- added method `apiRoot.withProjectKey().productProjections().withKey().head()` +- added method `apiRoot.withProjectKey().productProjections().withId().head()` +- added method `apiRoot.withProjectKey().productSelections().withKey().head()` +- added method `apiRoot.withProjectKey().productSelections().withId().head()` +- added method `apiRoot.withProjectKey().quotes().withKey().head()` +- added method `apiRoot.withProjectKey().quotes().withId().head()` +- added method `apiRoot.withProjectKey().quoteRequests().withKey().head()` +- added method `apiRoot.withProjectKey().quoteRequests().withId().head()` +- added method `apiRoot.withProjectKey().stagedQuotes().withKey().head()` +- added method `apiRoot.withProjectKey().stagedQuotes().withId().head()` +- added method `apiRoot.withProjectKey().reviews().withKey().head()` +- added method `apiRoot.withProjectKey().reviews().withId().head()` +- added method `apiRoot.withProjectKey().shippingMethods().withKey().head()` +- added method `apiRoot.withProjectKey().shippingMethods().matchingCart().head()` +- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().head()` +- added method `apiRoot.withProjectKey().shippingMethods().matchingOrderedit().head()` +- added method `apiRoot.withProjectKey().shippingMethods().matchingLocation().head()` +- added method `apiRoot.withProjectKey().shippingMethods().withId().head()` +- added method `apiRoot.withProjectKey().shoppingLists().withKey().head()` +- added method `apiRoot.withProjectKey().shoppingLists().withId().head()` +- added method `apiRoot.withProjectKey().states().withKey().head()` +- added method `apiRoot.withProjectKey().states().withId().head()` +- added method `apiRoot.withProjectKey().subscriptions().withKey().head()` +- added method `apiRoot.withProjectKey().subscriptions().withId().head()` +- added method `apiRoot.withProjectKey().taxCategories().withKey().head()` +- added method `apiRoot.withProjectKey().taxCategories().withId().head()` +- added method `apiRoot.withProjectKey().types().withKey().head()` +- added method `apiRoot.withProjectKey().types().withId().head()` +- added method `apiRoot.withProjectKey().zones().withKey().head()` +- added method `apiRoot.withProjectKey().zones().withId().head()` +- added method `apiRoot.withProjectKey().me().activeCart().head()` +- added method `apiRoot.withProjectKey().me().businessUnits().head()` +- added method `apiRoot.withProjectKey().me().carts().head()` +- added method `apiRoot.withProjectKey().me().orders().head()` +- added method `apiRoot.withProjectKey().me().payments().head()` +- added method `apiRoot.withProjectKey().me().quoteRequests().head()` +- added method `apiRoot.withProjectKey().me().quotes().head()` +- added method `apiRoot.withProjectKey().me().shoppingLists().head()` +- added method `apiRoot.withProjectKey().me().businessUnits().withId().head()` +- added method `apiRoot.withProjectKey().me().businessUnits().withKey().head()` +- added method `apiRoot.withProjectKey().me().carts().withKey().head()` +- added method `apiRoot.withProjectKey().me().carts().withId().head()` +- added method `apiRoot.withProjectKey().me().orders().withId().head()` +- added method `apiRoot.withProjectKey().me().payments().withId().head()` +- added method `apiRoot.withProjectKey().me().quoteRequests().withId().head()` +- added method `apiRoot.withProjectKey().me().quoteRequests().withKey().head()` +- added method `apiRoot.withProjectKey().me().quotes().withId().head()` +- added method `apiRoot.withProjectKey().me().quotes().withKey().head()` +- added method `apiRoot.withProjectKey().me().shoppingLists().withId().head()` +- added method `apiRoot.withProjectKey().me().shoppingLists().withKey().head()` +- added method `apiRoot.withProjectKey().extensions().withKey().head()` +- added method `apiRoot.withProjectKey().extensions().withId().head()` +- added method `apiRoot.withProjectKey().apiClients().withId().head()` +- added method `apiRoot.withProjectKey().stores().withKey().head()` +- added method `apiRoot.withProjectKey().stores().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withCustomerId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withOrderNumber().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().activeCart().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shippingMethods().matchingCart().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().head()` +- added method `apiRoot.withProjectKey().standalonePrices().withKey().head()` +- added method `apiRoot.withProjectKey().standalonePrices().withId().head()` +- added method `apiRoot.withProjectKey().attributeGroups().withKey().head()` +- added method `apiRoot.withProjectKey().attributeGroups().withId().head()`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java new file mode 100644 index 00000000000..09ff383a955 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an API Client exists for a given id. Returns a 200 OK status if the API Client exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .apiClients()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyApiClientsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyApiClientsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyApiClientsByIDHead(ByProjectKeyApiClientsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/api-clients/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyApiClientsByIDHead that = (ByProjectKeyApiClientsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyApiClientsByIDHead copy() { + return new ByProjectKeyApiClientsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDRequestBuilder.java index 026ab4e57ee..f3cce4461f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDRequestBuilder.java @@ -22,6 +22,10 @@ public ByProjectKeyApiClientsByIDGet get() { return new ByProjectKeyApiClientsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyApiClientsByIDHead head() { + return new ByProjectKeyApiClientsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyApiClientsByIDDelete delete() { return new ByProjectKeyApiClientsByIDDelete(apiHttpClient, projectKey, ID); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java new file mode 100644 index 00000000000..ab8b15a6189 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an API Client exists for a given Query Predicate. Returns a 200 OK status if any API Clients match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .apiClients()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyApiClientsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyApiClientsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyApiClientsHead(ByProjectKeyApiClientsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/api-clients", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyApiClientsHead + */ + public ByProjectKeyApiClientsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyApiClientsHead that = (ByProjectKeyApiClientsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyApiClientsHead copy() { + return new ByProjectKeyApiClientsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsRequestBuilder.java index 9885e3048b8..5987531277f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyApiClientsGet get() { return new ByProjectKeyApiClientsGet(apiHttpClient, projectKey); } + public ByProjectKeyApiClientsHead head() { + return new ByProjectKeyApiClientsHead(apiHttpClient, projectKey); + } + public ByProjectKeyApiClientsPost post(com.commercetools.api.models.api_client.ApiClientDraft apiClientDraft) { return new ByProjectKeyApiClientsPost(apiHttpClient, projectKey, apiClientDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java new file mode 100644 index 00000000000..33f8699d693 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .businessUnits()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String ID; + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead(final ApiHttpClient apiHttpClient, + String projectKey, String associateId, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.ID = ID; + } + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead( + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/business-units/%s", this.projectKey, + this.associateId, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead that = (ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestBuilder.java index b197d6ed7d0..2e87028c5b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestBuilder.java @@ -26,6 +26,11 @@ public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDGet get() { return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDGet(apiHttpClient, projectKey, associateId, ID); } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead head() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead(apiHttpClient, projectKey, associateId, + ID); + } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDPost post( com.commercetools.api.models.business_unit.BusinessUnitUpdate businessUnitUpdate) { return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDPost(apiHttpClient, projectKey, associateId, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java new file mode 100644 index 00000000000..2174113e919 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java @@ -0,0 +1,212 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .businessUnits()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead(final ApiHttpClient apiHttpClient, String projectKey, + String associateId) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + } + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead( + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/business-units", this.projectKey, this.associateId); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead + */ + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead that = (ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(associateId, that.associateId).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java new file mode 100644 index 00000000000..eee0d21810a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .businessUnits()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String key; + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String associateId, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.key = key; + } + + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead( + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/business-units/key=%s", this.projectKey, + this.associateId, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead that = (ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestBuilder.java index 2bec734660e..e73d5109628 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestBuilder.java @@ -27,6 +27,11 @@ public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyGet get() { key); } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead head() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead(apiHttpClient, projectKey, associateId, + key); + } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyPost post( com.commercetools.api.models.business_unit.BusinessUnitUpdate businessUnitUpdate) { return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyPost(apiHttpClient, projectKey, associateId, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestBuilder.java index 8ca78c78fac..2a8fb891292 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestBuilder.java @@ -25,6 +25,10 @@ public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsGet get() { return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsGet(apiHttpClient, projectKey, associateId); } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead head() { + return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead(apiHttpClient, projectKey, associateId); + } + public ByProjectKeyAsAssociateByAssociateIdBusinessUnitsPost post( com.commercetools.api.models.business_unit.BusinessUnitDraft businessUnitDraft) { return new ByProjectKeyAsAssociateByAssociateIdBusinessUnitsPost(apiHttpClient, projectKey, associateId, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java new file mode 100644 index 00000000000..b4a8ef0c544 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .carts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String ID; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.ID = ID; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/carts/%s", this.projectKey, + this.associateId, this.businessUnitKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(ID) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDRequestBuilder.java index e30e37edaf1..d2df992c2ff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCar projectKey, associateId, businessUnitKey, ID); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead(apiHttpClient, + projectKey, associateId, businessUnitKey, ID); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDPost post( com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDPost(apiHttpClient, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java new file mode 100644 index 00000000000..51d1a4c42a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .carts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/carts", this.projectKey, + this.associateId, this.businessUnitKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead withWhere( + final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead addWhere( + final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead withWhere( + final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead addWhere( + final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead withWhere( + final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead addWhere( + final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(businessUnitKey).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java new file mode 100644 index 00000000000..2b7c4c7fcdd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .carts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String key; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.key = key; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/carts/key=%s", + this.projectKey, this.associateId, this.businessUnitKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(key) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyRequestBuilder.java index 50dadd4d437..ea84089d541 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCar projectKey, associateId, businessUnitKey, key); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead( + apiHttpClient, projectKey, associateId, businessUnitKey, key); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyPost post( com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsRequestBuilder.java index b74c6f1df29..64e48b77b8a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsRequestBuilder.java @@ -28,6 +28,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCar projectKey, associateId, businessUnitKey); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead(apiHttpClient, + projectKey, associateId, businessUnitKey); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost post( com.commercetools.api.models.cart.CartDraft cartDraft) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost(apiHttpClient, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java new file mode 100644 index 00000000000..ae1e429e291 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .orders()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String ID; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.ID = ID; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/orders/%s", this.projectKey, + this.associateId, this.businessUnitKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(ID) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDRequestBuilder.java index 8f08bb267ba..83b2bda7d7a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrd projectKey, associateId, businessUnitKey, ID); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead(apiHttpClient, + projectKey, associateId, businessUnitKey, ID); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDPost post( com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDPost(apiHttpClient, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java new file mode 100644 index 00000000000..d3b183b9cc1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .orders()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/orders", this.projectKey, + this.associateId, this.businessUnitKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead withWhere( + final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead addWhere( + final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead withWhere( + final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead addWhere( + final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead withWhere( + final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead addWhere( + final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(businessUnitKey).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead.java new file mode 100644 index 00000000000..3aefaf418f4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead.java @@ -0,0 +1,160 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .orders()
+ *            .withOrderNumber("{orderNumber}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead + extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String orderNumber; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String orderNumber) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.orderNumber = orderNumber; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.orderNumber = t.orderNumber; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/orders/order-number=%s", + this.projectKey, this.associateId, this.businessUnitKey, this.orderNumber); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getOrderNumber() { + return this.orderNumber; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setOrderNumber(final String orderNumber) { + this.orderNumber = orderNumber; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(orderNumber, that.orderNumber) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(orderNumber) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead( + this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberRequestBuilder.java index 8607cf66a7a..3ab428168f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrd apiHttpClient, projectKey, associateId, businessUnitKey, orderNumber); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberHead( + apiHttpClient, projectKey, associateId, businessUnitKey, orderNumber); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberPost post( com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder.java index 679ae43bd04..4876bed812c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder.java @@ -28,6 +28,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrd projectKey, associateId, businessUnitKey); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead(apiHttpClient, + projectKey, associateId, businessUnitKey); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersPost post( com.commercetools.api.models.order.OrderFromCartDraft orderFromCartDraft) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersPost(apiHttpClient, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java new file mode 100644 index 00000000000..3ebb07320c1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quoteRequests()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String ID; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.ID = ID; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quote-requests/%s", + this.projectKey, this.associateId, this.businessUnitKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(ID) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDRequestBuilder.java index 64395cac766..58d97d63c29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo apiHttpClient, projectKey, associateId, businessUnitKey, ID); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead( + apiHttpClient, projectKey, associateId, businessUnitKey, ID); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost post( com.commercetools.api.models.quote_request.QuoteRequestUpdate quoteRequestUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java new file mode 100644 index 00000000000..6d33f060885 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quoteRequests()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quote-requests", + this.projectKey, this.associateId, this.businessUnitKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead withWhere( + final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead addWhere( + final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead withWhere( + final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead addWhere( + final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead withWhere( + final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead addWhere( + final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(businessUnitKey).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java new file mode 100644 index 00000000000..a259dde935c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java @@ -0,0 +1,159 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quoteRequests()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String key; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.key = key; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quote-requests/key=%s", + this.projectKey, this.associateId, this.businessUnitKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(key) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead( + this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyRequestBuilder.java index 1cff80aa0a4..90b83d33d95 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo apiHttpClient, projectKey, associateId, businessUnitKey, key); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead( + apiHttpClient, projectKey, associateId, businessUnitKey, key); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost post( com.commercetools.api.models.quote_request.QuoteRequestUpdate quoteRequestUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsRequestBuilder.java index acc1f2a45e5..0804fd02988 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsRequestBuilder.java @@ -28,6 +28,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo projectKey, associateId, businessUnitKey); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead( + apiHttpClient, projectKey, associateId, businessUnitKey); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost post( com.commercetools.api.models.quote_request.QuoteRequestDraft quoteRequestDraft) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java new file mode 100644 index 00000000000..1efb3d8daba --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quotes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String ID; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.ID = ID; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quotes/%s", this.projectKey, + this.associateId, this.businessUnitKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(ID) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDRequestBuilder.java index 3642aa7bcbf..638bbc3c3f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo projectKey, associateId, businessUnitKey, ID); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead(apiHttpClient, + projectKey, associateId, businessUnitKey, ID); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost post( com.commercetools.api.models.quote.QuoteUpdate quoteUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDPost(apiHttpClient, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java new file mode 100644 index 00000000000..97fcea3714b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quotes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quotes", this.projectKey, + this.associateId, this.businessUnitKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead withWhere( + final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead addWhere( + final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead withWhere( + final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead addWhere( + final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead withWhere( + final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead + */ + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead addWhere( + final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(associateId).append(businessUnitKey).toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java new file mode 100644 index 00000000000..f36697224c8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .asAssociate()
+ *            .withAssociateIdValue("{associateId}")
+ *            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
+ *            .quotes()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String associateId; + private String businessUnitKey; + private String key; + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead( + final ApiHttpClient apiHttpClient, String projectKey, String associateId, String businessUnitKey, + String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.associateId = associateId; + this.businessUnitKey = businessUnitKey; + this.key = key; + } + + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead( + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.associateId = t.associateId; + this.businessUnitKey = t.businessUnitKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/as-associate/%s/in-business-unit/key=%s/quotes/key=%s", + this.projectKey, this.associateId, this.businessUnitKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getAssociateId() { + return this.associateId; + } + + public String getBusinessUnitKey() { + return this.businessUnitKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setAssociateId(final String associateId) { + this.associateId = associateId; + } + + public void setBusinessUnitKey(final String businessUnitKey) { + this.businessUnitKey = businessUnitKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead that = (ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(associateId, that.associateId) + .append(businessUnitKey, that.businessUnitKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey) + .append(associateId) + .append(businessUnitKey) + .append(key) + .toHashCode(); + } + + @Override + protected ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead copy() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder.java index 7fe6393dc2c..420305541c6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder.java @@ -30,6 +30,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo apiHttpClient, projectKey, associateId, businessUnitKey, key); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead( + apiHttpClient, projectKey, associateId, businessUnitKey, key); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost post( com.commercetools.api.models.quote.QuoteUpdate quoteUpdate) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyPost( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesRequestBuilder.java index f233a78f7fc..adef098fefe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesRequestBuilder.java @@ -26,6 +26,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuo projectKey, associateId, businessUnitKey); } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead head() { + return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead(apiHttpClient, + projectKey, associateId, businessUnitKey); + } + public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder withKey( String key) { return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyRequestBuilder( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java new file mode 100644 index 00000000000..ccbaff16629 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AssociateRole exists for a given id. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .associateRoles()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAssociateRolesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyAssociateRolesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyAssociateRolesByIDHead(ByProjectKeyAssociateRolesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/associate-roles/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAssociateRolesByIDHead that = (ByProjectKeyAssociateRolesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyAssociateRolesByIDHead copy() { + return new ByProjectKeyAssociateRolesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDRequestBuilder.java index 47c4d221730..aeca957eb3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyAssociateRolesByIDGet get() { return new ByProjectKeyAssociateRolesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyAssociateRolesByIDHead head() { + return new ByProjectKeyAssociateRolesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyAssociateRolesByIDPost post( com.commercetools.api.models.associate_role.AssociateRoleUpdate associateRoleUpdate) { return new ByProjectKeyAssociateRolesByIDPost(apiHttpClient, projectKey, ID, associateRoleUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java new file mode 100644 index 00000000000..1ec411d7f7e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AssociateRole exists for a given Query Predicate. Returns a 200 OK status if any AssociateRole match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .associateRoles()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAssociateRolesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyAssociateRolesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyAssociateRolesHead(ByProjectKeyAssociateRolesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/associate-roles", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAssociateRolesHead + */ + public ByProjectKeyAssociateRolesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAssociateRolesHead that = (ByProjectKeyAssociateRolesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyAssociateRolesHead copy() { + return new ByProjectKeyAssociateRolesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java new file mode 100644 index 00000000000..6ba05dcb1d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AssociateRole exists for a given key. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .associateRoles()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAssociateRolesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyAssociateRolesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyAssociateRolesKeyByKeyHead(ByProjectKeyAssociateRolesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/associate-roles/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAssociateRolesKeyByKeyHead that = (ByProjectKeyAssociateRolesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyAssociateRolesKeyByKeyHead copy() { + return new ByProjectKeyAssociateRolesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyRequestBuilder.java index a06d8ced828..0722ed68824 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyAssociateRolesKeyByKeyGet get() { return new ByProjectKeyAssociateRolesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyAssociateRolesKeyByKeyHead head() { + return new ByProjectKeyAssociateRolesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyAssociateRolesKeyByKeyPost post( com.commercetools.api.models.associate_role.AssociateRoleUpdate associateRoleUpdate) { return new ByProjectKeyAssociateRolesKeyByKeyPost(apiHttpClient, projectKey, key, associateRoleUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesRequestBuilder.java index 27ae45cb834..902e432287a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyAssociateRolesGet get() { return new ByProjectKeyAssociateRolesGet(apiHttpClient, projectKey); } + public ByProjectKeyAssociateRolesHead head() { + return new ByProjectKeyAssociateRolesHead(apiHttpClient, projectKey); + } + public ByProjectKeyAssociateRolesPost post( com.commercetools.api.models.associate_role.AssociateRoleDraft associateRoleDraft) { return new ByProjectKeyAssociateRolesPost(apiHttpClient, projectKey, associateRoleDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java new file mode 100644 index 00000000000..339fd168825 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AttributeGroup exists for a given id. Returns a 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyAttributeGroupsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyAttributeGroupsByIDHead(ByProjectKeyAttributeGroupsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/attribute-groups/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsByIDHead that = (ByProjectKeyAttributeGroupsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsByIDHead copy() { + return new ByProjectKeyAttributeGroupsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java index 6578360ffc4..ccd0be13cbe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyAttributeGroupsByIDGet get() { return new ByProjectKeyAttributeGroupsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyAttributeGroupsByIDHead head() { + return new ByProjectKeyAttributeGroupsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyAttributeGroupsByIDPost post( com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { return new ByProjectKeyAttributeGroupsByIDPost(apiHttpClient, projectKey, ID, attributeGroupUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java new file mode 100644 index 00000000000..6ad2b052260 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AttributeGroup exists for a given Query Predicate. Returns 200 OK status if any AttributeGroups match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyAttributeGroupsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyAttributeGroupsHead(ByProjectKeyAttributeGroupsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/attribute-groups", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyAttributeGroupsHead + */ + public ByProjectKeyAttributeGroupsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsHead that = (ByProjectKeyAttributeGroupsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsHead copy() { + return new ByProjectKeyAttributeGroupsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java new file mode 100644 index 00000000000..350e8aa169b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an AttributeGroup exists for a given key. Returns 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .attributeGroups()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyAttributeGroupsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyAttributeGroupsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyAttributeGroupsKeyByKeyHead(ByProjectKeyAttributeGroupsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/attribute-groups/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyAttributeGroupsKeyByKeyHead that = (ByProjectKeyAttributeGroupsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyAttributeGroupsKeyByKeyHead copy() { + return new ByProjectKeyAttributeGroupsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java index 9e36975297d..59174decb34 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyAttributeGroupsKeyByKeyGet get() { return new ByProjectKeyAttributeGroupsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyAttributeGroupsKeyByKeyHead head() { + return new ByProjectKeyAttributeGroupsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyAttributeGroupsKeyByKeyPost post( com.commercetools.api.models.attribute_group.AttributeGroupUpdate attributeGroupUpdate) { return new ByProjectKeyAttributeGroupsKeyByKeyPost(apiHttpClient, projectKey, key, attributeGroupUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java index 190c389b28f..0d97fa71646 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyAttributeGroupsGet get() { return new ByProjectKeyAttributeGroupsGet(apiHttpClient, projectKey); } + public ByProjectKeyAttributeGroupsHead head() { + return new ByProjectKeyAttributeGroupsHead(apiHttpClient, projectKey); + } + public ByProjectKeyAttributeGroupsPost post( com.commercetools.api.models.attribute_group.AttributeGroupDraft attributeGroupDraft) { return new ByProjectKeyAttributeGroupsPost(apiHttpClient, projectKey, attributeGroupDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java new file mode 100644 index 00000000000..c0bfd1ec5e9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyBusinessUnitsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyBusinessUnitsByIDHead(ByProjectKeyBusinessUnitsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsByIDHead that = (ByProjectKeyBusinessUnitsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsByIDHead copy() { + return new ByProjectKeyBusinessUnitsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDRequestBuilder.java index bc2c6ec997a..216a4827af4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyBusinessUnitsByIDGet get() { return new ByProjectKeyBusinessUnitsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyBusinessUnitsByIDHead head() { + return new ByProjectKeyBusinessUnitsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyBusinessUnitsByIDPost post( com.commercetools.api.models.business_unit.BusinessUnitUpdate businessUnitUpdate) { return new ByProjectKeyBusinessUnitsByIDPost(apiHttpClient, projectKey, ID, businessUnitUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java new file mode 100644 index 00000000000..90684a4bc6f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyBusinessUnitsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyBusinessUnitsHead(ByProjectKeyBusinessUnitsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyBusinessUnitsHead + */ + public ByProjectKeyBusinessUnitsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsHead that = (ByProjectKeyBusinessUnitsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsHead copy() { + return new ByProjectKeyBusinessUnitsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java new file mode 100644 index 00000000000..4b7f0515641 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .businessUnits()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyBusinessUnitsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyBusinessUnitsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyBusinessUnitsKeyByKeyHead(ByProjectKeyBusinessUnitsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/business-units/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyBusinessUnitsKeyByKeyHead that = (ByProjectKeyBusinessUnitsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyBusinessUnitsKeyByKeyHead copy() { + return new ByProjectKeyBusinessUnitsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java index 9b154800984..8d27edcd1fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyBusinessUnitsKeyByKeyGet get() { return new ByProjectKeyBusinessUnitsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyBusinessUnitsKeyByKeyHead head() { + return new ByProjectKeyBusinessUnitsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyBusinessUnitsKeyByKeyPost post( com.commercetools.api.models.business_unit.BusinessUnitUpdate businessUnitUpdate) { return new ByProjectKeyBusinessUnitsKeyByKeyPost(apiHttpClient, projectKey, key, businessUnitUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java index 69eec0950c8..598345a7c2c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsRequestBuilder.java @@ -22,6 +22,10 @@ public ByProjectKeyBusinessUnitsGet get() { return new ByProjectKeyBusinessUnitsGet(apiHttpClient, projectKey); } + public ByProjectKeyBusinessUnitsHead head() { + return new ByProjectKeyBusinessUnitsHead(apiHttpClient, projectKey); + } + public ByProjectKeyBusinessUnitsPost post( com.commercetools.api.models.business_unit.BusinessUnitDraft businessUnitDraft) { return new ByProjectKeyBusinessUnitsPost(apiHttpClient, projectKey, businessUnitDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java new file mode 100644 index 00000000000..5a203b8d385 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .cartDiscounts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartDiscountsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyCartDiscountsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyCartDiscountsByIDHead(ByProjectKeyCartDiscountsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/cart-discounts/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartDiscountsByIDHead that = (ByProjectKeyCartDiscountsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyCartDiscountsByIDHead copy() { + return new ByProjectKeyCartDiscountsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDRequestBuilder.java index 456a6efc069..51348c1a1b7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCartDiscountsByIDGet get() { return new ByProjectKeyCartDiscountsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyCartDiscountsByIDHead head() { + return new ByProjectKeyCartDiscountsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyCartDiscountsByIDPost post( com.commercetools.api.models.cart_discount.CartDiscountUpdate cartDiscountUpdate) { return new ByProjectKeyCartDiscountsByIDPost(apiHttpClient, projectKey, ID, cartDiscountUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java new file mode 100644 index 00000000000..7fdcb1f135a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .cartDiscounts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartDiscountsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCartDiscountsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCartDiscountsHead(ByProjectKeyCartDiscountsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/cart-discounts", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCartDiscountsHead + */ + public ByProjectKeyCartDiscountsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartDiscountsHead that = (ByProjectKeyCartDiscountsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCartDiscountsHead copy() { + return new ByProjectKeyCartDiscountsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java new file mode 100644 index 00000000000..1ae24bf2512 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .cartDiscounts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartDiscountsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyCartDiscountsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyCartDiscountsKeyByKeyHead(ByProjectKeyCartDiscountsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/cart-discounts/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartDiscountsKeyByKeyHead that = (ByProjectKeyCartDiscountsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyCartDiscountsKeyByKeyHead copy() { + return new ByProjectKeyCartDiscountsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyRequestBuilder.java index c87fe25d152..45f4ff5f4b7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCartDiscountsKeyByKeyGet get() { return new ByProjectKeyCartDiscountsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyCartDiscountsKeyByKeyHead head() { + return new ByProjectKeyCartDiscountsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyCartDiscountsKeyByKeyPost post( com.commercetools.api.models.cart_discount.CartDiscountUpdate cartDiscountUpdate) { return new ByProjectKeyCartDiscountsKeyByKeyPost(apiHttpClient, projectKey, key, cartDiscountUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsRequestBuilder.java index b95e2068a1e..5b9af6c2585 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCartDiscountsGet get() { return new ByProjectKeyCartDiscountsGet(apiHttpClient, projectKey); } + public ByProjectKeyCartDiscountsHead head() { + return new ByProjectKeyCartDiscountsHead(apiHttpClient, projectKey); + } + public ByProjectKeyCartDiscountsPost post( com.commercetools.api.models.cart_discount.CartDiscountDraft cartDiscountDraft) { return new ByProjectKeyCartDiscountsPost(apiHttpClient, projectKey, cartDiscountDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java new file mode 100644 index 00000000000..776a95e9a02 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .carts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyCartsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyCartsByIDHead(ByProjectKeyCartsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/carts/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartsByIDHead that = (ByProjectKeyCartsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyCartsByIDHead copy() { + return new ByProjectKeyCartsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDRequestBuilder.java index 28a76094a57..0d3665617f8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCartsByIDGet get() { return new ByProjectKeyCartsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyCartsByIDHead head() { + return new ByProjectKeyCartsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyCartsByIDPost post(com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyCartsByIDPost(apiHttpClient, projectKey, ID, cartUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java new file mode 100644 index 00000000000..f847dbeacd5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart of a Customer exists. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .carts()
+ *            .withCustomerId("{customerId}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartsCustomerIdByCustomerIdHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String customerId; + + public ByProjectKeyCartsCustomerIdByCustomerIdHead(final ApiHttpClient apiHttpClient, String projectKey, + String customerId) { + super(apiHttpClient); + this.projectKey = projectKey; + this.customerId = customerId; + } + + public ByProjectKeyCartsCustomerIdByCustomerIdHead(ByProjectKeyCartsCustomerIdByCustomerIdHead t) { + super(t); + this.projectKey = t.projectKey; + this.customerId = t.customerId; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/carts/customer-id=%s", this.projectKey, this.customerId); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getCustomerId() { + return this.customerId; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setCustomerId(final String customerId) { + this.customerId = customerId; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartsCustomerIdByCustomerIdHead that = (ByProjectKeyCartsCustomerIdByCustomerIdHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(customerId, that.customerId).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(customerId).toHashCode(); + } + + @Override + protected ByProjectKeyCartsCustomerIdByCustomerIdHead copy() { + return new ByProjectKeyCartsCustomerIdByCustomerIdHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder.java index 6b40e46251b..94564963e23 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyCartsCustomerIdByCustomerIdGet get() { return new ByProjectKeyCartsCustomerIdByCustomerIdGet(apiHttpClient, projectKey, customerId); } + public ByProjectKeyCartsCustomerIdByCustomerIdHead head() { + return new ByProjectKeyCartsCustomerIdByCustomerIdHead(apiHttpClient, projectKey, customerId); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java new file mode 100644 index 00000000000..5ca8f4dfbd4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java @@ -0,0 +1,194 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .carts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartsHead extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCartsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCartsHead(ByProjectKeyCartsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/carts", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCartsHead + */ + public ByProjectKeyCartsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartsHead that = (ByProjectKeyCartsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCartsHead copy() { + return new ByProjectKeyCartsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java new file mode 100644 index 00000000000..86b9f149f64 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .carts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCartsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyCartsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyCartsKeyByKeyHead(ByProjectKeyCartsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/carts/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCartsKeyByKeyHead that = (ByProjectKeyCartsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyCartsKeyByKeyHead copy() { + return new ByProjectKeyCartsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyRequestBuilder.java index 75afeca76ca..c96f5be8824 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCartsKeyByKeyGet get() { return new ByProjectKeyCartsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyCartsKeyByKeyHead head() { + return new ByProjectKeyCartsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyCartsKeyByKeyPost post(com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyCartsKeyByKeyPost(apiHttpClient, projectKey, key, cartUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsRequestBuilder.java index aa3a1377e43..17ae20d8da4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCartsGet get() { return new ByProjectKeyCartsGet(apiHttpClient, projectKey); } + public ByProjectKeyCartsHead head() { + return new ByProjectKeyCartsHead(apiHttpClient, projectKey); + } + public ByProjectKeyCartsPost post(com.commercetools.api.models.cart.CartDraft cartDraft) { return new ByProjectKeyCartsPost(apiHttpClient, projectKey, cartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java new file mode 100644 index 00000000000..17bd83822e1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Category exists for a given id. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .categories()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCategoriesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyCategoriesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyCategoriesByIDHead(ByProjectKeyCategoriesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/categories/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCategoriesByIDHead that = (ByProjectKeyCategoriesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyCategoriesByIDHead copy() { + return new ByProjectKeyCategoriesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDRequestBuilder.java index 247e986a74c..9cbc93b882c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCategoriesByIDGet get() { return new ByProjectKeyCategoriesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyCategoriesByIDHead head() { + return new ByProjectKeyCategoriesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyCategoriesByIDPost post(com.commercetools.api.models.category.CategoryUpdate categoryUpdate) { return new ByProjectKeyCategoriesByIDPost(apiHttpClient, projectKey, ID, categoryUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java new file mode 100644 index 00000000000..a56f25ab2bb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Category exists for on a given Query Predicate. Returns a 200 OK status if any Categories match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .categories()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCategoriesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCategoriesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCategoriesHead(ByProjectKeyCategoriesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/categories", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCategoriesHead + */ + public ByProjectKeyCategoriesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCategoriesHead that = (ByProjectKeyCategoriesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCategoriesHead copy() { + return new ByProjectKeyCategoriesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java new file mode 100644 index 00000000000..177e27ebe35 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Category exists for a given key. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .categories()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCategoriesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyCategoriesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyCategoriesKeyByKeyHead(ByProjectKeyCategoriesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/categories/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCategoriesKeyByKeyHead that = (ByProjectKeyCategoriesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyCategoriesKeyByKeyHead copy() { + return new ByProjectKeyCategoriesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyRequestBuilder.java index 3f42b08ea67..43f941c5cf8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCategoriesKeyByKeyGet get() { return new ByProjectKeyCategoriesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyCategoriesKeyByKeyHead head() { + return new ByProjectKeyCategoriesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyCategoriesKeyByKeyPost post( com.commercetools.api.models.category.CategoryUpdate categoryUpdate) { return new ByProjectKeyCategoriesKeyByKeyPost(apiHttpClient, projectKey, key, categoryUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesRequestBuilder.java index f795364158b..02556c1a956 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCategoriesGet get() { return new ByProjectKeyCategoriesGet(apiHttpClient, projectKey); } + public ByProjectKeyCategoriesHead head() { + return new ByProjectKeyCategoriesHead(apiHttpClient, projectKey); + } + public ByProjectKeyCategoriesPost post(com.commercetools.api.models.category.CategoryDraft categoryDraft) { return new ByProjectKeyCategoriesPost(apiHttpClient, projectKey, categoryDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java new file mode 100644 index 00000000000..44a60a6e38e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Channel exists for a given id. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .channels()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyChannelsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyChannelsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyChannelsByIDHead(ByProjectKeyChannelsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/channels/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyChannelsByIDHead that = (ByProjectKeyChannelsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyChannelsByIDHead copy() { + return new ByProjectKeyChannelsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDRequestBuilder.java index 9e59eb32747..17f5efe424d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyChannelsByIDGet get() { return new ByProjectKeyChannelsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyChannelsByIDHead head() { + return new ByProjectKeyChannelsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyChannelsByIDPost post(com.commercetools.api.models.channel.ChannelUpdate channelUpdate) { return new ByProjectKeyChannelsByIDPost(apiHttpClient, projectKey, ID, channelUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java new file mode 100644 index 00000000000..ea5bcb2c97f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Channel exists for a given Query Predicate. Returns a 200 OK status if any Channels match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .channels()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyChannelsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyChannelsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyChannelsHead(ByProjectKeyChannelsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/channels", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyChannelsHead + */ + public ByProjectKeyChannelsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyChannelsHead that = (ByProjectKeyChannelsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyChannelsHead copy() { + return new ByProjectKeyChannelsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsRequestBuilder.java index c67715c8530..f4dbbf25baa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyChannelsGet get() { return new ByProjectKeyChannelsGet(apiHttpClient, projectKey); } + public ByProjectKeyChannelsHead head() { + return new ByProjectKeyChannelsHead(apiHttpClient, projectKey); + } + public ByProjectKeyChannelsPost post(com.commercetools.api.models.channel.ChannelDraft channelDraft) { return new ByProjectKeyChannelsPost(apiHttpClient, projectKey, channelDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java new file mode 100644 index 00000000000..979fe18477f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CustomObject exists for a given Query Predicate. Returns a 200 OK status if any CustomObjects match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customObjects()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomObjectsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCustomObjectsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCustomObjectsHead(ByProjectKeyCustomObjectsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/custom-objects", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCustomObjectsHead + */ + public ByProjectKeyCustomObjectsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomObjectsHead that = (ByProjectKeyCustomObjectsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCustomObjectsHead copy() { + return new ByProjectKeyCustomObjectsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsRequestBuilder.java index ac0e084c360..e8780b4bd70 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCustomObjectsGet get() { return new ByProjectKeyCustomObjectsGet(apiHttpClient, projectKey); } + public ByProjectKeyCustomObjectsHead head() { + return new ByProjectKeyCustomObjectsHead(apiHttpClient, projectKey); + } + public ByProjectKeyCustomObjectsPost post( com.commercetools.api.models.custom_object.CustomObjectDraft customObjectDraft) { return new ByProjectKeyCustomObjectsPost(apiHttpClient, projectKey, customObjectDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java new file mode 100644 index 00000000000..09167670fa7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CustomerGroup exists for a given id. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customerGroups()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomerGroupsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyCustomerGroupsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyCustomerGroupsByIDHead(ByProjectKeyCustomerGroupsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customer-groups/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomerGroupsByIDHead that = (ByProjectKeyCustomerGroupsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyCustomerGroupsByIDHead copy() { + return new ByProjectKeyCustomerGroupsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDRequestBuilder.java index 6df52c15dcc..af52bb4f227 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCustomerGroupsByIDGet get() { return new ByProjectKeyCustomerGroupsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyCustomerGroupsByIDHead head() { + return new ByProjectKeyCustomerGroupsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyCustomerGroupsByIDPost post( com.commercetools.api.models.customer_group.CustomerGroupUpdate customerGroupUpdate) { return new ByProjectKeyCustomerGroupsByIDPost(apiHttpClient, projectKey, ID, customerGroupUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java new file mode 100644 index 00000000000..0d0b70b956d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CustomerGroup exists for a given Query Predicate. Returns a 200 OK status if any CustomerGroup match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customerGroups()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomerGroupsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCustomerGroupsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCustomerGroupsHead(ByProjectKeyCustomerGroupsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customer-groups", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCustomerGroupsHead + */ + public ByProjectKeyCustomerGroupsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomerGroupsHead that = (ByProjectKeyCustomerGroupsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCustomerGroupsHead copy() { + return new ByProjectKeyCustomerGroupsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java new file mode 100644 index 00000000000..7ec65458d83 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CustomerGroup exists for a given key. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customerGroups()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomerGroupsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyCustomerGroupsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyCustomerGroupsKeyByKeyHead(ByProjectKeyCustomerGroupsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customer-groups/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomerGroupsKeyByKeyHead that = (ByProjectKeyCustomerGroupsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyCustomerGroupsKeyByKeyHead copy() { + return new ByProjectKeyCustomerGroupsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyRequestBuilder.java index 90d4385709d..d8aa781cca8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCustomerGroupsKeyByKeyGet get() { return new ByProjectKeyCustomerGroupsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyCustomerGroupsKeyByKeyHead head() { + return new ByProjectKeyCustomerGroupsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyCustomerGroupsKeyByKeyPost post( com.commercetools.api.models.customer_group.CustomerGroupUpdate customerGroupUpdate) { return new ByProjectKeyCustomerGroupsKeyByKeyPost(apiHttpClient, projectKey, key, customerGroupUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsRequestBuilder.java index be356e63e8c..a1b92f187be 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCustomerGroupsGet get() { return new ByProjectKeyCustomerGroupsGet(apiHttpClient, projectKey); } + public ByProjectKeyCustomerGroupsHead head() { + return new ByProjectKeyCustomerGroupsHead(apiHttpClient, projectKey); + } + public ByProjectKeyCustomerGroupsPost post( com.commercetools.api.models.customer_group.CustomerGroupDraft customerGroupDraft) { return new ByProjectKeyCustomerGroupsPost(apiHttpClient, projectKey, customerGroupDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java new file mode 100644 index 00000000000..41fdafba907 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customers()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomersByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyCustomersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyCustomersByIDHead(ByProjectKeyCustomersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customers/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomersByIDHead that = (ByProjectKeyCustomersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyCustomersByIDHead copy() { + return new ByProjectKeyCustomersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDRequestBuilder.java index 60f6027aae8..030b2adfff6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCustomersByIDGet get() { return new ByProjectKeyCustomersByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyCustomersByIDHead head() { + return new ByProjectKeyCustomersByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyCustomersByIDPost post(com.commercetools.api.models.customer.CustomerUpdate customerUpdate) { return new ByProjectKeyCustomersByIDPost(apiHttpClient, projectKey, ID, customerUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java new file mode 100644 index 00000000000..b775e647df5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customers()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyCustomersHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyCustomersHead(ByProjectKeyCustomersHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customers", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyCustomersHead + */ + public ByProjectKeyCustomersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomersHead that = (ByProjectKeyCustomersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyCustomersHead copy() { + return new ByProjectKeyCustomersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java new file mode 100644 index 00000000000..c0e40485367 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .customers()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyCustomersKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyCustomersKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyCustomersKeyByKeyHead(ByProjectKeyCustomersKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/customers/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyCustomersKeyByKeyHead that = (ByProjectKeyCustomersKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyCustomersKeyByKeyHead copy() { + return new ByProjectKeyCustomersKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyRequestBuilder.java index 12b95616760..1b155afc8be 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyCustomersKeyByKeyGet get() { return new ByProjectKeyCustomersKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyCustomersKeyByKeyHead head() { + return new ByProjectKeyCustomersKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyCustomersKeyByKeyPost post(com.commercetools.api.models.customer.CustomerUpdate customerUpdate) { return new ByProjectKeyCustomersKeyByKeyPost(apiHttpClient, projectKey, key, customerUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersRequestBuilder.java index 54940c8e554..a455704f3a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyCustomersGet get() { return new ByProjectKeyCustomersGet(apiHttpClient, projectKey); } + public ByProjectKeyCustomersHead head() { + return new ByProjectKeyCustomersHead(apiHttpClient, projectKey); + } + public ByProjectKeyCustomersPost post(com.commercetools.api.models.customer.CustomerDraft customerDraft) { return new ByProjectKeyCustomersPost(apiHttpClient, projectKey, customerDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java new file mode 100644 index 00000000000..d0ba568b2b7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a DiscountCode exists for a given id. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .discountCodes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyDiscountCodesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyDiscountCodesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyDiscountCodesByIDHead(ByProjectKeyDiscountCodesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/discount-codes/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyDiscountCodesByIDHead that = (ByProjectKeyDiscountCodesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyDiscountCodesByIDHead copy() { + return new ByProjectKeyDiscountCodesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDRequestBuilder.java index f70c57bf6b3..a05cff3a462 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyDiscountCodesByIDGet get() { return new ByProjectKeyDiscountCodesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyDiscountCodesByIDHead head() { + return new ByProjectKeyDiscountCodesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyDiscountCodesByIDPost post( com.commercetools.api.models.discount_code.DiscountCodeUpdate discountCodeUpdate) { return new ByProjectKeyDiscountCodesByIDPost(apiHttpClient, projectKey, ID, discountCodeUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java new file mode 100644 index 00000000000..ae80b49903c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a DiscountCode exists for a given Query Predicate. Returns a 200 OK status if any DiscountCodes match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .discountCodes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyDiscountCodesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyDiscountCodesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyDiscountCodesHead(ByProjectKeyDiscountCodesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/discount-codes", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyDiscountCodesHead + */ + public ByProjectKeyDiscountCodesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyDiscountCodesHead that = (ByProjectKeyDiscountCodesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyDiscountCodesHead copy() { + return new ByProjectKeyDiscountCodesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesRequestBuilder.java index 0b849a96604..960f11d163d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyDiscountCodesGet get() { return new ByProjectKeyDiscountCodesGet(apiHttpClient, projectKey); } + public ByProjectKeyDiscountCodesHead head() { + return new ByProjectKeyDiscountCodesHead(apiHttpClient, projectKey); + } + public ByProjectKeyDiscountCodesPost post( com.commercetools.api.models.discount_code.DiscountCodeDraft discountCodeDraft) { return new ByProjectKeyDiscountCodesPost(apiHttpClient, projectKey, discountCodeDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java new file mode 100644 index 00000000000..ed7a5b306c8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Extension exists for a given id. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .extensions()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyExtensionsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyExtensionsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyExtensionsByIDHead(ByProjectKeyExtensionsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/extensions/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyExtensionsByIDHead that = (ByProjectKeyExtensionsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyExtensionsByIDHead copy() { + return new ByProjectKeyExtensionsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDRequestBuilder.java index b2030c17ba8..47a18f4eb20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyExtensionsByIDGet get() { return new ByProjectKeyExtensionsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyExtensionsByIDHead head() { + return new ByProjectKeyExtensionsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyExtensionsByIDPost post(com.commercetools.api.models.extension.ExtensionUpdate extensionUpdate) { return new ByProjectKeyExtensionsByIDPost(apiHttpClient, projectKey, ID, extensionUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java new file mode 100644 index 00000000000..aaf2301022c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Extension exists for a given Query Predicate. Returns a 200 OK status if any Extensions match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .extensions()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyExtensionsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyExtensionsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyExtensionsHead(ByProjectKeyExtensionsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/extensions", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyExtensionsHead + */ + public ByProjectKeyExtensionsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyExtensionsHead that = (ByProjectKeyExtensionsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyExtensionsHead copy() { + return new ByProjectKeyExtensionsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java new file mode 100644 index 00000000000..a03b8fd190b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Extension exists for a given key. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .extensions()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyExtensionsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyExtensionsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyExtensionsKeyByKeyHead(ByProjectKeyExtensionsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/extensions/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyExtensionsKeyByKeyHead that = (ByProjectKeyExtensionsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyExtensionsKeyByKeyHead copy() { + return new ByProjectKeyExtensionsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyRequestBuilder.java index 7f96a6a60ef..213d3c58186 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyExtensionsKeyByKeyGet get() { return new ByProjectKeyExtensionsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyExtensionsKeyByKeyHead head() { + return new ByProjectKeyExtensionsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyExtensionsKeyByKeyPost post( com.commercetools.api.models.extension.ExtensionUpdate extensionUpdate) { return new ByProjectKeyExtensionsKeyByKeyPost(apiHttpClient, projectKey, key, extensionUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsRequestBuilder.java index 8fb939bd302..2ce31ac6237 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyExtensionsGet get() { return new ByProjectKeyExtensionsGet(apiHttpClient, projectKey); } + public ByProjectKeyExtensionsHead head() { + return new ByProjectKeyExtensionsHead(apiHttpClient, projectKey); + } + public ByProjectKeyExtensionsPost post(com.commercetools.api.models.extension.ExtensionDraft extensionDraft) { return new ByProjectKeyExtensionsPost(apiHttpClient, projectKey, extensionDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyHead.java new file mode 100644 index 00000000000..5da54f036b3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyHead.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Project exists for a given projectKey. Returns a 200 OK status if the Project exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyHead extends TypeApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyHead(ByProjectKeyHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyHead that = (ByProjectKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyHead copy() { + return new ByProjectKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java new file mode 100644 index 00000000000..1bcddc925e9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .cartDiscounts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead( + ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/cart-discounts/%s", this.projectKey, this.storeKey, + this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder.java index 44206c1ffc4..a03d8571e6b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDPost post( com.commercetools.api.models.cart_discount.CartDiscountUpdate cartDiscountUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDPost(apiHttpClient, projectKey, storeKey, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java new file mode 100644 index 00000000000..6b64d8dbd31 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java @@ -0,0 +1,207 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .cartDiscounts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead extends + TypeApiMethod { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead(ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/cart-discounts", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead that = (ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java new file mode 100644 index 00000000000..24766bf7074 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .cartDiscounts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/cart-discounts/key=%s", this.projectKey, + this.storeKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder.java index 759eb4d4cea..8a2999c39f9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead(apiHttpClient, projectKey, storeKey, key); + } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyPost post( com.commercetools.api.models.cart_discount.CartDiscountUpdate cartDiscountUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyPost(apiHttpClient, projectKey, storeKey, key, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder.java index 06042231380..54c3c805b41 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost post( com.commercetools.api.models.cart_discount.CartDiscountDraft cartDiscountDraft) { return new ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost(apiHttpClient, projectKey, storeKey, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java new file mode 100644 index 00000000000..5c2a79e15d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .carts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead(ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/carts/%s", this.projectKey, this.storeKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestBuilder.java index 19ea6786e03..1e27bbf396b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyCartsByIDPost post(com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCartsByIDPost(apiHttpClient, projectKey, storeKey, ID, cartUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java new file mode 100644 index 00000000000..f6b5ea5917d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart of a Customer exists. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .carts()
+ *            .withCustomerId("{customerId}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String customerId; + + public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String customerId) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.customerId = customerId; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead( + ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.customerId = t.customerId; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/carts/customer-id=%s", this.projectKey, + this.storeKey, this.customerId); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getCustomerId() { + return this.customerId; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setCustomerId(final String customerId) { + this.customerId = customerId; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead that = (ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(customerId, that.customerId) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(customerId).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestBuilder.java index e2c6045005b..11e0f0366fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestBuilder.java @@ -25,4 +25,9 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet get() { customerId); } + public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead(apiHttpClient, projectKey, storeKey, + customerId); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java new file mode 100644 index 00000000000..17ca8de830f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java @@ -0,0 +1,208 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .carts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyCartsHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartsHead(ByProjectKeyInStoreKeyByStoreKeyCartsHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/carts", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCartsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartsHead that = (ByProjectKeyInStoreKeyByStoreKeyCartsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartsHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java new file mode 100644 index 00000000000..35cbb02e439 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java @@ -0,0 +1,137 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .carts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead(ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/carts/key=%s", this.projectKey, this.storeKey, + this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestBuilder.java index 93258cac5b8..66595822792 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); } + public ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead(apiHttpClient, projectKey, storeKey, key); + } + public ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyPost post( com.commercetools.api.models.cart.CartUpdate cartUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyPost(apiHttpClient, projectKey, storeKey, key, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsRequestBuilder.java index 311e58b49c3..f534fb94aff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsRequestBuilder.java @@ -25,6 +25,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCartsGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCartsGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyCartsHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCartsHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyCartsPost post(com.commercetools.api.models.cart.CartDraft cartDraft) { return new ByProjectKeyInStoreKeyByStoreKeyCartsPost(apiHttpClient, projectKey, storeKey, cartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java new file mode 100644 index 00000000000..99e45504daa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java @@ -0,0 +1,137 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .customers()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead(ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/customers/%s", this.projectKey, this.storeKey, + this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestBuilder.java index 7a434c2220c..7d63315c061 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCustomersByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost post( com.commercetools.api.models.customer.CustomerUpdate customerUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCustomersByIDPost(apiHttpClient, projectKey, storeKey, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java new file mode 100644 index 00000000000..335cb699fb0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java @@ -0,0 +1,208 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .customers()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCustomersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead(ByProjectKeyInStoreKeyByStoreKeyCustomersHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/customers", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyCustomersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCustomersHead that = (ByProjectKeyInStoreKeyByStoreKeyCustomersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCustomersHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java new file mode 100644 index 00000000000..d1c07db407f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .customers()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/customers/key=%s", this.projectKey, this.storeKey, + this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestBuilder.java index cf9a1cd56e2..e88b9cedc31 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); } + public ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead(apiHttpClient, projectKey, storeKey, key); + } + public ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost post( com.commercetools.api.models.customer.CustomerUpdate customerUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyPost(apiHttpClient, projectKey, storeKey, key, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder.java index 20c7738c7c7..f84beb910ac 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder.java @@ -25,6 +25,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersGet get() { return new ByProjectKeyInStoreKeyByStoreKeyCustomersGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyCustomersHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyCustomersHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyCustomersPost post( com.commercetools.api.models.customer.CustomerDraft customerDraft) { return new ByProjectKeyInStoreKeyByStoreKeyCustomersPost(apiHttpClient, projectKey, storeKey, customerDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead.java new file mode 100644 index 00000000000..71071ecb893 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead.java @@ -0,0 +1,122 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an active Cart exists. Returns a 200 OK status if an active Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .activeCart()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead(ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/active-cart", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead that = (ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestBuilder.java index 6ca7b86a032..2d2ef444947 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyInStoreKeyByStoreKeyMeActiveCartGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeActiveCartGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead(apiHttpClient, projectKey, storeKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead.java new file mode 100644 index 00000000000..5c6c05782e1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks ifa My Cart exists for a given id. Returns a 200 OK status if the My Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .carts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead(ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/carts/%s", this.projectKey, this.storeKey, + this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestBuilder.java index 28d18fdeea8..48710d1c1dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDPost post( com.commercetools.api.models.me.MyCartUpdate myCartUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDPost(apiHttpClient, projectKey, storeKey, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java new file mode 100644 index 00000000000..5e87f2cb92a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .carts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead(ByProjectKeyInStoreKeyByStoreKeyMeCartsHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/carts", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeCartsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeCartsHead that = (ByProjectKeyInStoreKeyByStoreKeyMeCartsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeCartsHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeCartsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestBuilder.java index ff3aaaa41dc..4938fd3e6a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInStoreKeyByStoreKeyMeCartsGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeCartsGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyMeCartsHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeCartsHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyMeCartsPost post(com.commercetools.api.models.me.MyCartDraft myCartDraft) { return new ByProjectKeyInStoreKeyByStoreKeyMeCartsPost(apiHttpClient, projectKey, storeKey, myCartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java new file mode 100644 index 00000000000..c6f16bd9969 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given id. Returns a 200 OK status if the My Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .orders()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead(ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/orders/%s", this.projectKey, this.storeKey, + this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestBuilder.java index 92fc070b64e..016b23ccbcc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestBuilder.java @@ -24,4 +24,8 @@ public ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java new file mode 100644 index 00000000000..8bd0e344812 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .orders()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead(ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/orders", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead that = (ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder.java index 422baf16ce6..3288e65646e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost post( com.commercetools.api.models.me.MyOrderFromCartDraft myOrderFromCartDraft) { return new ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost(apiHttpClient, projectKey, storeKey, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java new file mode 100644 index 00000000000..0a495fbc9cd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead( + ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/shopping-lists/%s", this.projectKey, + this.storeKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestBuilder.java index 098ecbf0957..b181815dbb2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDPost post( com.commercetools.api.models.me.MyShoppingListUpdate myShoppingListUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDPost(apiHttpClient, projectKey, storeKey, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead.java new file mode 100644 index 00000000000..c10c37f3a49 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead.java @@ -0,0 +1,211 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead(ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/shopping-lists", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead addWhere( + final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead that = (ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java new file mode 100644 index 00000000000..ee37cc27f3e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/me/shopping-lists/key=%s", this.projectKey, + this.storeKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder.java index 3bd0db62da5..6df34a667b1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder.java @@ -26,6 +26,11 @@ public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead(apiHttpClient, projectKey, storeKey, + key); + } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyPost post( com.commercetools.api.models.me.MyShoppingListUpdate myShoppingListUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyPost(apiHttpClient, projectKey, storeKey, key, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestBuilder.java index 3e29bee8eaf..c402b9e173e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsGet get() { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsPost post( com.commercetools.api.models.me.MyShoppingListDraft myShoppingListDraft) { return new ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsPost(apiHttpClient, projectKey, storeKey, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java new file mode 100644 index 00000000000..f8240535b60 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java @@ -0,0 +1,136 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .orders()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead(ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/orders/%s", this.projectKey, this.storeKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestBuilder.java index 90b432d31e5..dd09c03b651 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyOrdersByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyOrdersByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyOrdersByIDPost post( com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyOrdersByIDPost(apiHttpClient, projectKey, storeKey, ID, orderUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java new file mode 100644 index 00000000000..688926ecca3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java @@ -0,0 +1,208 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .orders()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyOrdersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead(ByProjectKeyInStoreKeyByStoreKeyOrdersHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/orders", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyOrdersHead + */ + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyOrdersHead that = (ByProjectKeyInStoreKeyByStoreKeyOrdersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyOrdersHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java new file mode 100644 index 00000000000..71357431a4b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .orders()
+ *            .withOrderNumber("{orderNumber}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String orderNumber; + + public ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String orderNumber) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.orderNumber = orderNumber; + } + + public ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead( + ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.orderNumber = t.orderNumber; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/orders/order-number=%s", this.projectKey, + this.storeKey, this.orderNumber); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getOrderNumber() { + return this.orderNumber; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setOrderNumber(final String orderNumber) { + this.orderNumber = orderNumber; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead that = (ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(orderNumber, that.orderNumber) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(orderNumber).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestBuilder.java index 1a0dff68aca..f4f13adbf2e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestBuilder.java @@ -28,6 +28,11 @@ public ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberGet get() { storeKey, orderNumber); } + public ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead(apiHttpClient, projectKey, + storeKey, orderNumber); + } + public ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberPost post( com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberPost(apiHttpClient, projectKey, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder.java index 055b621fca2..8eec87f7b3f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder.java @@ -25,6 +25,10 @@ public ByProjectKeyInStoreKeyByStoreKeyOrdersGet get() { return new ByProjectKeyInStoreKeyByStoreKeyOrdersGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyOrdersHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyOrdersHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyOrdersPost post( com.commercetools.api.models.order.OrderFromCartDraft orderFromCartDraft) { return new ByProjectKeyInStoreKeyByStoreKeyOrdersPost(apiHttpClient, projectKey, storeKey, orderFromCartDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java new file mode 100644 index 00000000000..d62e3cfccd0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if the current or staged representations of a Product exists for a given id in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .productProjections()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead( + ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/product-projections/%s", this.projectKey, + this.storeKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilder.java index c599725d849..51665345936 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilder.java @@ -24,4 +24,8 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java new file mode 100644 index 00000000000..4b7fd60a0d3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if the current or staged representations of a Product exists for a given key in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .productProjections()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/product-projections/key=%s", this.projectKey, + this.storeKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBuilder.java index 2fddf616dea..bb8aabd5d0d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBuilder.java @@ -25,4 +25,9 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet get() { key); } + public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead(apiHttpClient, projectKey, storeKey, + key); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead.java new file mode 100644 index 00000000000..a93665614c1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead.java @@ -0,0 +1,217 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod that can ship to the shipping address of the given Cart exists in the given Store. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .shippingMethods()
+ *            .matchingCart()
+ *            .head()
+ *            .withCartId(cartId)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead( + ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/shipping-methods/matching-cart", this.projectKey, + this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getCartId() { + return this.getQueryParam("cartId"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set cartId with the specified value + * @param cartId value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead withCartId(final TValue cartId) { + return copy().withQueryParam("cartId", cartId); + } + + /** + * add additional cartId query parameter + * @param cartId value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead addCartId(final TValue cartId) { + return copy().addQueryParam("cartId", cartId); + } + + /** + * set cartId with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead withCartId(final Supplier supplier) { + return copy().withQueryParam("cartId", supplier.get()); + } + + /** + * add additional cartId query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead addCartId(final Supplier supplier) { + return copy().addQueryParam("cartId", supplier.get()); + } + + /** + * set cartId with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead withCartId( + final Function op) { + return copy().withQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * add additional cartId query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead addCartId( + final Function op) { + return copy().addQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * set cartId with the specified values + * @param cartId values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead withCartId( + final Collection cartId) { + return copy().withoutQueryParam("cartId") + .addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional cartId query parameters + * @param cartId values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead addCartId( + final Collection cartId) { + return copy().addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead that = (ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestBuilder.java index 46275b17980..1bd45a03a92 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartGet get() { return new ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartHead(apiHttpClient, projectKey, storeKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java new file mode 100644 index 00000000000..0ddb8fd5bf4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .shoppingLists()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String ID; + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.ID = ID; + } + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead( + ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/shopping-lists/%s", this.projectKey, this.storeKey, + this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(ID, that.ID) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestBuilder.java index ec12643ab2e..912b2c1693c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDGet get() { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDGet(apiHttpClient, projectKey, storeKey, ID); } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead(apiHttpClient, projectKey, storeKey, ID); + } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDPost post( com.commercetools.api.models.shopping_list.ShoppingListUpdate shoppingListUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDPost(apiHttpClient, projectKey, storeKey, ID, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java new file mode 100644 index 00000000000..9bf63281825 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java @@ -0,0 +1,209 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .shoppingLists()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead(final ApiHttpClient apiHttpClient, String projectKey, + String storeKey) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + } + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead(ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/shopping-lists", this.projectKey, this.storeKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead withWhere( + final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead + */ + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead that = (ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java new file mode 100644 index 00000000000..1336d9fc870 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inStoreKeyWithStoreKeyValue("{storeKey}")
+ *            .shoppingLists()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead extends + TypeApiMethod + implements + com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String storeKey; + private String key; + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead(final ApiHttpClient apiHttpClient, + String projectKey, String storeKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.storeKey = storeKey; + this.key = key; + } + + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead( + ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.storeKey = t.storeKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/in-store/key=%s/shopping-lists/key=%s", this.projectKey, + this.storeKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getStoreKey() { + return this.storeKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setStoreKey(final String storeKey) { + this.storeKey = storeKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey) + .append(storeKey, that.storeKey) + .append(key, that.key) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead copy() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestBuilder.java index 781440368b5..79b10e9757a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestBuilder.java @@ -26,6 +26,10 @@ public ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyGet get() { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyGet(apiHttpClient, projectKey, storeKey, key); } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead(apiHttpClient, projectKey, storeKey, key); + } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyPost post( com.commercetools.api.models.shopping_list.ShoppingListUpdate shoppingListUpdate) { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyPost(apiHttpClient, projectKey, storeKey, key, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestBuilder.java index d5590082d6e..2a76658793c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestBuilder.java @@ -25,6 +25,10 @@ public ByProjectKeyInStoreKeyByStoreKeyShoppingListsGet get() { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsGet(apiHttpClient, projectKey, storeKey); } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead head() { + return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead(apiHttpClient, projectKey, storeKey); + } + public ByProjectKeyInStoreKeyByStoreKeyShoppingListsPost post( com.commercetools.api.models.shopping_list.ShoppingListDraft shoppingListDraft) { return new ByProjectKeyInStoreKeyByStoreKeyShoppingListsPost(apiHttpClient, projectKey, storeKey, diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java new file mode 100644 index 00000000000..eb4f6d5746b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an InventoryEntry exists for a given id. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inventory()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInventoryByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyInventoryByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyInventoryByIDHead(ByProjectKeyInventoryByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/inventory/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInventoryByIDHead that = (ByProjectKeyInventoryByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyInventoryByIDHead copy() { + return new ByProjectKeyInventoryByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDRequestBuilder.java index ce6f182758b..654831473d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInventoryByIDGet get() { return new ByProjectKeyInventoryByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyInventoryByIDHead head() { + return new ByProjectKeyInventoryByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyInventoryByIDPost post( com.commercetools.api.models.inventory.InventoryEntryUpdate inventoryEntryUpdate) { return new ByProjectKeyInventoryByIDPost(apiHttpClient, projectKey, ID, inventoryEntryUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java new file mode 100644 index 00000000000..93f00746cdf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an InventoryEntry exists for a given Query Predicate. Returns a 200 OK status if any Inventory Entries match the Query Predicate, a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inventory()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInventoryHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyInventoryHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyInventoryHead(ByProjectKeyInventoryHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/inventory", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyInventoryHead + */ + public ByProjectKeyInventoryHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInventoryHead that = (ByProjectKeyInventoryHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyInventoryHead copy() { + return new ByProjectKeyInventoryHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java new file mode 100644 index 00000000000..1b0626faff6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an InventoryEntry exists for a given key. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .inventory()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyInventoryKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyInventoryKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyInventoryKeyByKeyHead(ByProjectKeyInventoryKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/inventory/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyInventoryKeyByKeyHead that = (ByProjectKeyInventoryKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyInventoryKeyByKeyHead copy() { + return new ByProjectKeyInventoryKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyRequestBuilder.java index a39cff11763..5d114ad56fd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyInventoryKeyByKeyGet get() { return new ByProjectKeyInventoryKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyInventoryKeyByKeyHead head() { + return new ByProjectKeyInventoryKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyInventoryKeyByKeyPost post( com.commercetools.api.models.inventory.InventoryEntryUpdate inventoryEntryUpdate) { return new ByProjectKeyInventoryKeyByKeyPost(apiHttpClient, projectKey, key, inventoryEntryUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryRequestBuilder.java index e5455faf1a5..bc74ce2a719 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyInventoryGet get() { return new ByProjectKeyInventoryGet(apiHttpClient, projectKey); } + public ByProjectKeyInventoryHead head() { + return new ByProjectKeyInventoryHead(apiHttpClient, projectKey); + } + public ByProjectKeyInventoryPost post( com.commercetools.api.models.inventory.InventoryEntryDraft inventoryEntryDraft) { return new ByProjectKeyInventoryPost(apiHttpClient, projectKey, inventoryEntryDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartHead.java new file mode 100644 index 00000000000..03ae1d9679a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartHead.java @@ -0,0 +1,109 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an active Cart exists. Returns a 200 OK status if an active Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .activeCart()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeActiveCartHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeActiveCartHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeActiveCartHead(ByProjectKeyMeActiveCartHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/active-cart", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeActiveCartHead that = (ByProjectKeyMeActiveCartHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeActiveCartHead copy() { + return new ByProjectKeyMeActiveCartHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartRequestBuilder.java index 5dedd0a19e7..e95cc69c103 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeActiveCartRequestBuilder.java @@ -19,4 +19,8 @@ public ByProjectKeyMeActiveCartGet get() { return new ByProjectKeyMeActiveCartGet(apiHttpClient, projectKey); } + public ByProjectKeyMeActiveCartHead head() { + return new ByProjectKeyMeActiveCartHead(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java new file mode 100644 index 00000000000..9a8936fed1d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .businessUnits()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeBusinessUnitsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeBusinessUnitsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeBusinessUnitsByIDHead(ByProjectKeyMeBusinessUnitsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/business-units/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeBusinessUnitsByIDHead that = (ByProjectKeyMeBusinessUnitsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeBusinessUnitsByIDHead copy() { + return new ByProjectKeyMeBusinessUnitsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java index f5a99be1d1c..a25f97aef5c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeBusinessUnitsByIDGet get() { return new ByProjectKeyMeBusinessUnitsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeBusinessUnitsByIDHead head() { + return new ByProjectKeyMeBusinessUnitsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMeBusinessUnitsByIDPost post( com.commercetools.api.models.me.MyBusinessUnitUpdate myBusinessUnitUpdate) { return new ByProjectKeyMeBusinessUnitsByIDPost(apiHttpClient, projectKey, ID, myBusinessUnitUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java new file mode 100644 index 00000000000..ed751d71817 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .businessUnits()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeBusinessUnitsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeBusinessUnitsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeBusinessUnitsHead(ByProjectKeyMeBusinessUnitsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/business-units", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeBusinessUnitsHead + */ + public ByProjectKeyMeBusinessUnitsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeBusinessUnitsHead that = (ByProjectKeyMeBusinessUnitsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeBusinessUnitsHead copy() { + return new ByProjectKeyMeBusinessUnitsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java new file mode 100644 index 00000000000..38153919aae --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .businessUnits()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeBusinessUnitsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMeBusinessUnitsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMeBusinessUnitsKeyByKeyHead(ByProjectKeyMeBusinessUnitsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/business-units/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeBusinessUnitsKeyByKeyHead that = (ByProjectKeyMeBusinessUnitsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMeBusinessUnitsKeyByKeyHead copy() { + return new ByProjectKeyMeBusinessUnitsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java index 8d8b6be477e..70e219540a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeBusinessUnitsKeyByKeyGet get() { return new ByProjectKeyMeBusinessUnitsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyMeBusinessUnitsKeyByKeyHead head() { + return new ByProjectKeyMeBusinessUnitsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyMeBusinessUnitsKeyByKeyPost post( com.commercetools.api.models.me.MyBusinessUnitUpdate myBusinessUnitUpdate) { return new ByProjectKeyMeBusinessUnitsKeyByKeyPost(apiHttpClient, projectKey, key, myBusinessUnitUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsRequestBuilder.java index 03c60a8dbcb..32ab34073b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsRequestBuilder.java @@ -22,6 +22,10 @@ public ByProjectKeyMeBusinessUnitsGet get() { return new ByProjectKeyMeBusinessUnitsGet(apiHttpClient, projectKey); } + public ByProjectKeyMeBusinessUnitsHead head() { + return new ByProjectKeyMeBusinessUnitsHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeBusinessUnitsPost post( com.commercetools.api.models.me.MyBusinessUnitDraft myBusinessUnitDraft) { return new ByProjectKeyMeBusinessUnitsPost(apiHttpClient, projectKey, myBusinessUnitDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java new file mode 100644 index 00000000000..5c834d7ce23 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .carts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeCartsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeCartsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeCartsByIDHead(ByProjectKeyMeCartsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/carts/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeCartsByIDHead that = (ByProjectKeyMeCartsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeCartsByIDHead copy() { + return new ByProjectKeyMeCartsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDRequestBuilder.java index 6c6180c14c1..4d61f1243fa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeCartsByIDGet get() { return new ByProjectKeyMeCartsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeCartsByIDHead head() { + return new ByProjectKeyMeCartsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMeCartsByIDPost post(com.commercetools.api.models.me.MyCartUpdate myCartUpdate) { return new ByProjectKeyMeCartsByIDPost(apiHttpClient, projectKey, ID, myCartUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsHead.java new file mode 100644 index 00000000000..b95db1f2669 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .carts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeCartsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeCartsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeCartsHead(ByProjectKeyMeCartsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/carts", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeCartsHead + */ + public ByProjectKeyMeCartsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeCartsHead that = (ByProjectKeyMeCartsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeCartsHead copy() { + return new ByProjectKeyMeCartsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyHead.java new file mode 100644 index 00000000000..4ed27315379 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .carts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeCartsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMeCartsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMeCartsKeyByKeyHead(ByProjectKeyMeCartsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/carts/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeCartsKeyByKeyHead that = (ByProjectKeyMeCartsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMeCartsKeyByKeyHead copy() { + return new ByProjectKeyMeCartsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyRequestBuilder.java index 7baff192e1e..737bab94013 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeCartsKeyByKeyGet get() { return new ByProjectKeyMeCartsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyMeCartsKeyByKeyHead head() { + return new ByProjectKeyMeCartsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyMeCartsKeyByKeyPost post(com.commercetools.api.models.me.MyCartUpdate myCartUpdate) { return new ByProjectKeyMeCartsKeyByKeyPost(apiHttpClient, projectKey, key, myCartUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsRequestBuilder.java index 50477ccd90c..a41c0743d82 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyMeCartsGet get() { return new ByProjectKeyMeCartsGet(apiHttpClient, projectKey); } + public ByProjectKeyMeCartsHead head() { + return new ByProjectKeyMeCartsHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeCartsPost post(com.commercetools.api.models.me.MyCartDraft myCartDraft) { return new ByProjectKeyMeCartsPost(apiHttpClient, projectKey, myCartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java new file mode 100644 index 00000000000..1ab8939bd68 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .orders()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeOrdersByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeOrdersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeOrdersByIDHead(ByProjectKeyMeOrdersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/orders/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeOrdersByIDHead that = (ByProjectKeyMeOrdersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeOrdersByIDHead copy() { + return new ByProjectKeyMeOrdersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDRequestBuilder.java index 2156d6e1f79..e49d4a51a3a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyMeOrdersByIDGet get() { return new ByProjectKeyMeOrdersByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeOrdersByIDHead head() { + return new ByProjectKeyMeOrdersByIDHead(apiHttpClient, projectKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java new file mode 100644 index 00000000000..5fb35033025 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .orders()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeOrdersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeOrdersHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeOrdersHead(ByProjectKeyMeOrdersHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/orders", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeOrdersHead + */ + public ByProjectKeyMeOrdersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeOrdersHead that = (ByProjectKeyMeOrdersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeOrdersHead copy() { + return new ByProjectKeyMeOrdersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersRequestBuilder.java index 4c6b5986797..24b1bcae37f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyMeOrdersGet get() { return new ByProjectKeyMeOrdersGet(apiHttpClient, projectKey); } + public ByProjectKeyMeOrdersHead head() { + return new ByProjectKeyMeOrdersHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeOrdersPost post(com.commercetools.api.models.me.MyOrderFromCartDraft myOrderFromCartDraft) { return new ByProjectKeyMeOrdersPost(apiHttpClient, projectKey, myOrderFromCartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java new file mode 100644 index 00000000000..8bb4504875f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .payments()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMePaymentsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMePaymentsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMePaymentsByIDHead(ByProjectKeyMePaymentsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/payments/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMePaymentsByIDHead that = (ByProjectKeyMePaymentsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMePaymentsByIDHead copy() { + return new ByProjectKeyMePaymentsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDRequestBuilder.java index 847902c1db8..de756355f02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMePaymentsByIDGet get() { return new ByProjectKeyMePaymentsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMePaymentsByIDHead head() { + return new ByProjectKeyMePaymentsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMePaymentsByIDPost post(com.commercetools.api.models.me.MyPaymentUpdate myPaymentUpdate) { return new ByProjectKeyMePaymentsByIDPost(apiHttpClient, projectKey, ID, myPaymentUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java new file mode 100644 index 00000000000..ccbaff96ac4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .payments()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMePaymentsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMePaymentsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMePaymentsHead(ByProjectKeyMePaymentsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/payments", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMePaymentsHead + */ + public ByProjectKeyMePaymentsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMePaymentsHead that = (ByProjectKeyMePaymentsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMePaymentsHead copy() { + return new ByProjectKeyMePaymentsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsRequestBuilder.java index 47ca9ea09a2..3f02eb59af9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyMePaymentsGet get() { return new ByProjectKeyMePaymentsGet(apiHttpClient, projectKey); } + public ByProjectKeyMePaymentsHead head() { + return new ByProjectKeyMePaymentsHead(apiHttpClient, projectKey); + } + public ByProjectKeyMePaymentsPost post(com.commercetools.api.models.me.MyPaymentDraft myPaymentDraft) { return new ByProjectKeyMePaymentsPost(apiHttpClient, projectKey, myPaymentDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java new file mode 100644 index 00000000000..b6fd0c19639 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if my QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quoteRequests()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuoteRequestsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeQuoteRequestsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeQuoteRequestsByIDHead(ByProjectKeyMeQuoteRequestsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quote-requests/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuoteRequestsByIDHead that = (ByProjectKeyMeQuoteRequestsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuoteRequestsByIDHead copy() { + return new ByProjectKeyMeQuoteRequestsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.java index 8fa601c0c17..5c0e4e6ffdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeQuoteRequestsByIDGet get() { return new ByProjectKeyMeQuoteRequestsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeQuoteRequestsByIDHead head() { + return new ByProjectKeyMeQuoteRequestsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMeQuoteRequestsByIDPost post( com.commercetools.api.models.me.MyQuoteRequestUpdate myQuoteRequestUpdate) { return new ByProjectKeyMeQuoteRequestsByIDPost(apiHttpClient, projectKey, ID, myQuoteRequestUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java new file mode 100644 index 00000000000..88552a76caa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if my QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quoteRequests()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuoteRequestsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeQuoteRequestsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeQuoteRequestsHead(ByProjectKeyMeQuoteRequestsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quote-requests", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeQuoteRequestsHead + */ + public ByProjectKeyMeQuoteRequestsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuoteRequestsHead that = (ByProjectKeyMeQuoteRequestsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuoteRequestsHead copy() { + return new ByProjectKeyMeQuoteRequestsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java new file mode 100644 index 00000000000..c5f92ec006f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if my QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quoteRequests()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuoteRequestsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMeQuoteRequestsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMeQuoteRequestsKeyByKeyHead(ByProjectKeyMeQuoteRequestsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quote-requests/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuoteRequestsKeyByKeyHead that = (ByProjectKeyMeQuoteRequestsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuoteRequestsKeyByKeyHead copy() { + return new ByProjectKeyMeQuoteRequestsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.java index 5eae40a8f09..159fd15ab9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeQuoteRequestsKeyByKeyGet get() { return new ByProjectKeyMeQuoteRequestsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyMeQuoteRequestsKeyByKeyHead head() { + return new ByProjectKeyMeQuoteRequestsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyMeQuoteRequestsKeyByKeyPost post( com.commercetools.api.models.me.MyQuoteRequestUpdate myQuoteRequestUpdate) { return new ByProjectKeyMeQuoteRequestsKeyByKeyPost(apiHttpClient, projectKey, key, myQuoteRequestUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsRequestBuilder.java index 19d85df379d..19de0d7db16 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyMeQuoteRequestsGet get() { return new ByProjectKeyMeQuoteRequestsGet(apiHttpClient, projectKey); } + public ByProjectKeyMeQuoteRequestsHead head() { + return new ByProjectKeyMeQuoteRequestsHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeQuoteRequestsPost post( com.commercetools.api.models.me.MyQuoteRequestDraft myQuoteRequestDraft) { return new ByProjectKeyMeQuoteRequestsPost(apiHttpClient, projectKey, myQuoteRequestDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java new file mode 100644 index 00000000000..b2ca64b90dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quotes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuotesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeQuotesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeQuotesByIDHead(ByProjectKeyMeQuotesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quotes/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuotesByIDHead that = (ByProjectKeyMeQuotesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuotesByIDHead copy() { + return new ByProjectKeyMeQuotesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDRequestBuilder.java index 9627a73453e..74cd92120b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeQuotesByIDGet get() { return new ByProjectKeyMeQuotesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeQuotesByIDHead head() { + return new ByProjectKeyMeQuotesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMeQuotesByIDPost post(com.commercetools.api.models.me.MyQuoteUpdate myQuoteUpdate) { return new ByProjectKeyMeQuotesByIDPost(apiHttpClient, projectKey, ID, myQuoteUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java new file mode 100644 index 00000000000..963dc07f8b9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quotes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuotesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeQuotesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeQuotesHead(ByProjectKeyMeQuotesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quotes", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeQuotesHead + */ + public ByProjectKeyMeQuotesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuotesHead that = (ByProjectKeyMeQuotesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuotesHead copy() { + return new ByProjectKeyMeQuotesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java new file mode 100644 index 00000000000..06597f3314e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .quotes()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeQuotesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMeQuotesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMeQuotesKeyByKeyHead(ByProjectKeyMeQuotesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/quotes/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeQuotesKeyByKeyHead that = (ByProjectKeyMeQuotesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMeQuotesKeyByKeyHead copy() { + return new ByProjectKeyMeQuotesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyRequestBuilder.java index 75f891bd162..0eb31abeeb1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeQuotesKeyByKeyGet get() { return new ByProjectKeyMeQuotesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyMeQuotesKeyByKeyHead head() { + return new ByProjectKeyMeQuotesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyMeQuotesKeyByKeyPost post(com.commercetools.api.models.me.MyQuoteUpdate myQuoteUpdate) { return new ByProjectKeyMeQuotesKeyByKeyPost(apiHttpClient, projectKey, key, myQuoteUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesRequestBuilder.java index 04fd4b515e0..4855d42d4b4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesRequestBuilder.java @@ -19,6 +19,10 @@ public ByProjectKeyMeQuotesGet get() { return new ByProjectKeyMeQuotesGet(apiHttpClient, projectKey); } + public ByProjectKeyMeQuotesHead head() { + return new ByProjectKeyMeQuotesHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeQuotesByIDRequestBuilder withId(String ID) { return new ByProjectKeyMeQuotesByIDRequestBuilder(apiHttpClient, projectKey, ID); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java new file mode 100644 index 00000000000..6c20ac32f84 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeShoppingListsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMeShoppingListsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMeShoppingListsByIDHead(ByProjectKeyMeShoppingListsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/shopping-lists/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeShoppingListsByIDHead that = (ByProjectKeyMeShoppingListsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMeShoppingListsByIDHead copy() { + return new ByProjectKeyMeShoppingListsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDRequestBuilder.java index 4808d9eb95e..b87ab0ae13f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeShoppingListsByIDGet get() { return new ByProjectKeyMeShoppingListsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMeShoppingListsByIDHead head() { + return new ByProjectKeyMeShoppingListsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyMeShoppingListsByIDPost post( com.commercetools.api.models.me.MyShoppingListUpdate myShoppingListUpdate) { return new ByProjectKeyMeShoppingListsByIDPost(apiHttpClient, projectKey, ID, myShoppingListUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsHead.java new file mode 100644 index 00000000000..0e5a5c634ea --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeShoppingListsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMeShoppingListsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMeShoppingListsHead(ByProjectKeyMeShoppingListsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/shopping-lists", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMeShoppingListsHead + */ + public ByProjectKeyMeShoppingListsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeShoppingListsHead that = (ByProjectKeyMeShoppingListsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMeShoppingListsHead copy() { + return new ByProjectKeyMeShoppingListsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java new file mode 100644 index 00000000000..3c1a39fe294 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .me()
+ *            .shoppingLists()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMeShoppingListsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyMeShoppingListsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyMeShoppingListsKeyByKeyHead(ByProjectKeyMeShoppingListsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/me/shopping-lists/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMeShoppingListsKeyByKeyHead that = (ByProjectKeyMeShoppingListsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyMeShoppingListsKeyByKeyHead copy() { + return new ByProjectKeyMeShoppingListsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyRequestBuilder.java index 97847d8076f..d6a3f63a20d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyMeShoppingListsKeyByKeyGet get() { return new ByProjectKeyMeShoppingListsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyMeShoppingListsKeyByKeyHead head() { + return new ByProjectKeyMeShoppingListsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyMeShoppingListsKeyByKeyPost post( com.commercetools.api.models.me.MyShoppingListUpdate myShoppingListUpdate) { return new ByProjectKeyMeShoppingListsKeyByKeyPost(apiHttpClient, projectKey, key, myShoppingListUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsRequestBuilder.java index e4c83ea69dd..15aa42f4fd1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyMeShoppingListsGet get() { return new ByProjectKeyMeShoppingListsGet(apiHttpClient, projectKey); } + public ByProjectKeyMeShoppingListsHead head() { + return new ByProjectKeyMeShoppingListsHead(apiHttpClient, projectKey); + } + public ByProjectKeyMeShoppingListsPost post( com.commercetools.api.models.me.MyShoppingListDraft myShoppingListDraft) { return new ByProjectKeyMeShoppingListsPost(apiHttpClient, projectKey, myShoppingListDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java new file mode 100644 index 00000000000..d996c5f5c6b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Message exists for a given id. Returns a 200 OK status if the Message exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .messages()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMessagesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyMessagesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyMessagesByIDHead(ByProjectKeyMessagesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/messages/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMessagesByIDHead that = (ByProjectKeyMessagesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyMessagesByIDHead copy() { + return new ByProjectKeyMessagesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDRequestBuilder.java index 1351a37c5f6..42e39c8ef1f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyMessagesByIDGet get() { return new ByProjectKeyMessagesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyMessagesByIDHead head() { + return new ByProjectKeyMessagesByIDHead(apiHttpClient, projectKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java new file mode 100644 index 00000000000..2df13508f57 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Message exists for a given Query Predicate. Returns a 200 OK status if any Messages match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .messages()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyMessagesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyMessagesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyMessagesHead(ByProjectKeyMessagesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/messages", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyMessagesHead + */ + public ByProjectKeyMessagesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyMessagesHead that = (ByProjectKeyMessagesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyMessagesHead copy() { + return new ByProjectKeyMessagesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesRequestBuilder.java index c6b89c45e0c..cff5f3f9adb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesRequestBuilder.java @@ -19,6 +19,10 @@ public ByProjectKeyMessagesGet get() { return new ByProjectKeyMessagesGet(apiHttpClient, projectKey); } + public ByProjectKeyMessagesHead head() { + return new ByProjectKeyMessagesHead(apiHttpClient, projectKey); + } + public ByProjectKeyMessagesByIDRequestBuilder withId(String ID) { return new ByProjectKeyMessagesByIDRequestBuilder(apiHttpClient, projectKey, ID); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java new file mode 100644 index 00000000000..afd20b4101b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyOrdersByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyOrdersByIDHead(ByProjectKeyOrdersByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersByIDHead that = (ByProjectKeyOrdersByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersByIDHead copy() { + return new ByProjectKeyOrdersByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDRequestBuilder.java index b72c41ecbf6..da10785cdca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyOrdersByIDGet get() { return new ByProjectKeyOrdersByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyOrdersByIDHead head() { + return new ByProjectKeyOrdersByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyOrdersByIDPost post(com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyOrdersByIDPost(apiHttpClient, projectKey, ID, orderUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java new file mode 100644 index 00000000000..3e0e77d313a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an OrderEdit exists for a given id. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .edits()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersEditsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyOrdersEditsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyOrdersEditsByIDHead(ByProjectKeyOrdersEditsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders/edits/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersEditsByIDHead that = (ByProjectKeyOrdersEditsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersEditsByIDHead copy() { + return new ByProjectKeyOrdersEditsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDRequestBuilder.java index ea062c9524a..0bf53ebabc6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyOrdersEditsByIDGet get() { return new ByProjectKeyOrdersEditsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyOrdersEditsByIDHead head() { + return new ByProjectKeyOrdersEditsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyOrdersEditsByIDPost post( com.commercetools.api.models.order_edit.OrderEditUpdate orderEditUpdate) { return new ByProjectKeyOrdersEditsByIDPost(apiHttpClient, projectKey, ID, orderEditUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java new file mode 100644 index 00000000000..afda4542750 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java @@ -0,0 +1,196 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an OrderEdit exists for a given Query Predicate. Returns a 200 OK status if any OrderEdits match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .edits()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersEditsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyOrdersEditsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyOrdersEditsHead(ByProjectKeyOrdersEditsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders/edits", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyOrdersEditsHead + */ + public ByProjectKeyOrdersEditsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersEditsHead that = (ByProjectKeyOrdersEditsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersEditsHead copy() { + return new ByProjectKeyOrdersEditsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java new file mode 100644 index 00000000000..6c470f08e8b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an OrderEdit exists for a given key. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .edits()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersEditsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyOrdersEditsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyOrdersEditsKeyByKeyHead(ByProjectKeyOrdersEditsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders/edits/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersEditsKeyByKeyHead that = (ByProjectKeyOrdersEditsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersEditsKeyByKeyHead copy() { + return new ByProjectKeyOrdersEditsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyRequestBuilder.java index 5cbf0d42979..97457580708 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyOrdersEditsKeyByKeyGet get() { return new ByProjectKeyOrdersEditsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyOrdersEditsKeyByKeyHead head() { + return new ByProjectKeyOrdersEditsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyOrdersEditsKeyByKeyPost post( com.commercetools.api.models.order_edit.OrderEditUpdate orderEditUpdate) { return new ByProjectKeyOrdersEditsKeyByKeyPost(apiHttpClient, projectKey, key, orderEditUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsRequestBuilder.java index bc8e86e63fe..6f5bd127fd5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyOrdersEditsGet get() { return new ByProjectKeyOrdersEditsGet(apiHttpClient, projectKey); } + public ByProjectKeyOrdersEditsHead head() { + return new ByProjectKeyOrdersEditsHead(apiHttpClient, projectKey); + } + public ByProjectKeyOrdersEditsPost post(com.commercetools.api.models.order_edit.OrderEditDraft orderEditDraft) { return new ByProjectKeyOrdersEditsPost(apiHttpClient, projectKey, orderEditDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java new file mode 100644 index 00000000000..c21982e997d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyOrdersHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyOrdersHead(ByProjectKeyOrdersHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyOrdersHead + */ + public ByProjectKeyOrdersHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersHead that = (ByProjectKeyOrdersHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersHead copy() { + return new ByProjectKeyOrdersHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberHead.java new file mode 100644 index 00000000000..584c470751d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .orders()
+ *            .withOrderNumber("{orderNumber}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyOrdersOrderNumberByOrderNumberHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String orderNumber; + + public ByProjectKeyOrdersOrderNumberByOrderNumberHead(final ApiHttpClient apiHttpClient, String projectKey, + String orderNumber) { + super(apiHttpClient); + this.projectKey = projectKey; + this.orderNumber = orderNumber; + } + + public ByProjectKeyOrdersOrderNumberByOrderNumberHead(ByProjectKeyOrdersOrderNumberByOrderNumberHead t) { + super(t); + this.projectKey = t.projectKey; + this.orderNumber = t.orderNumber; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/orders/order-number=%s", this.projectKey, this.orderNumber); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getOrderNumber() { + return this.orderNumber; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setOrderNumber(final String orderNumber) { + this.orderNumber = orderNumber; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyOrdersOrderNumberByOrderNumberHead that = (ByProjectKeyOrdersOrderNumberByOrderNumberHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(orderNumber, that.orderNumber).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(orderNumber).toHashCode(); + } + + @Override + protected ByProjectKeyOrdersOrderNumberByOrderNumberHead copy() { + return new ByProjectKeyOrdersOrderNumberByOrderNumberHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberRequestBuilder.java index 0c5fe9b75c0..3402c338330 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersOrderNumberByOrderNumberRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyOrdersOrderNumberByOrderNumberGet get() { return new ByProjectKeyOrdersOrderNumberByOrderNumberGet(apiHttpClient, projectKey, orderNumber); } + public ByProjectKeyOrdersOrderNumberByOrderNumberHead head() { + return new ByProjectKeyOrdersOrderNumberByOrderNumberHead(apiHttpClient, projectKey, orderNumber); + } + public ByProjectKeyOrdersOrderNumberByOrderNumberPost post( com.commercetools.api.models.order.OrderUpdate orderUpdate) { return new ByProjectKeyOrdersOrderNumberByOrderNumberPost(apiHttpClient, projectKey, orderNumber, orderUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersRequestBuilder.java index 66a78d11595..c9d5ad0b55c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyOrdersGet get() { return new ByProjectKeyOrdersGet(apiHttpClient, projectKey); } + public ByProjectKeyOrdersHead head() { + return new ByProjectKeyOrdersHead(apiHttpClient, projectKey); + } + public ByProjectKeyOrdersPost post(com.commercetools.api.models.order.OrderFromCartDraft orderFromCartDraft) { return new ByProjectKeyOrdersPost(apiHttpClient, projectKey, orderFromCartDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java new file mode 100644 index 00000000000..7dad0d8af00 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .payments()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyPaymentsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyPaymentsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyPaymentsByIDHead(ByProjectKeyPaymentsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/payments/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyPaymentsByIDHead that = (ByProjectKeyPaymentsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyPaymentsByIDHead copy() { + return new ByProjectKeyPaymentsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDRequestBuilder.java index 6cb1510c046..91387335723 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyPaymentsByIDGet get() { return new ByProjectKeyPaymentsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyPaymentsByIDHead head() { + return new ByProjectKeyPaymentsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyPaymentsByIDPost post(com.commercetools.api.models.payment.PaymentUpdate paymentUpdate) { return new ByProjectKeyPaymentsByIDPost(apiHttpClient, projectKey, ID, paymentUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java new file mode 100644 index 00000000000..b91173f198c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .payments()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyPaymentsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyPaymentsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyPaymentsHead(ByProjectKeyPaymentsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/payments", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyPaymentsHead + */ + public ByProjectKeyPaymentsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyPaymentsHead that = (ByProjectKeyPaymentsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyPaymentsHead copy() { + return new ByProjectKeyPaymentsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java new file mode 100644 index 00000000000..6f9b1f8da37 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Payment exists for a given key. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .payments()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyPaymentsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyPaymentsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyPaymentsKeyByKeyHead(ByProjectKeyPaymentsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/payments/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyPaymentsKeyByKeyHead that = (ByProjectKeyPaymentsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyPaymentsKeyByKeyHead copy() { + return new ByProjectKeyPaymentsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyRequestBuilder.java index 422b2805820..102809d1f38 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyPaymentsKeyByKeyGet get() { return new ByProjectKeyPaymentsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyPaymentsKeyByKeyHead head() { + return new ByProjectKeyPaymentsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyPaymentsKeyByKeyPost post(com.commercetools.api.models.payment.PaymentUpdate paymentUpdate) { return new ByProjectKeyPaymentsKeyByKeyPost(apiHttpClient, projectKey, key, paymentUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsRequestBuilder.java index 597778adb6b..5e370cf855f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyPaymentsGet get() { return new ByProjectKeyPaymentsGet(apiHttpClient, projectKey); } + public ByProjectKeyPaymentsHead head() { + return new ByProjectKeyPaymentsHead(apiHttpClient, projectKey); + } + public ByProjectKeyPaymentsPost post(com.commercetools.api.models.payment.PaymentDraft paymentDraft) { return new ByProjectKeyPaymentsPost(apiHttpClient, projectKey, paymentDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java new file mode 100644 index 00000000000..e910caf670b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductDiscount exists for a given id. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productDiscounts()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductDiscountsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyProductDiscountsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyProductDiscountsByIDHead(ByProjectKeyProductDiscountsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-discounts/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductDiscountsByIDHead that = (ByProjectKeyProductDiscountsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyProductDiscountsByIDHead copy() { + return new ByProjectKeyProductDiscountsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDRequestBuilder.java index 8e9fbcb2347..28a893d6aea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyProductDiscountsByIDGet get() { return new ByProjectKeyProductDiscountsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyProductDiscountsByIDHead head() { + return new ByProjectKeyProductDiscountsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyProductDiscountsByIDPost post( com.commercetools.api.models.product_discount.ProductDiscountUpdate productDiscountUpdate) { return new ByProjectKeyProductDiscountsByIDPost(apiHttpClient, projectKey, ID, productDiscountUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java new file mode 100644 index 00000000000..e02fdf965a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductDiscount exists for a given Query Predicate. Returns a 200 OK status if any ProductDiscounts match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productDiscounts()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductDiscountsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyProductDiscountsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyProductDiscountsHead(ByProjectKeyProductDiscountsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-discounts", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyProductDiscountsHead + */ + public ByProjectKeyProductDiscountsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductDiscountsHead that = (ByProjectKeyProductDiscountsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyProductDiscountsHead copy() { + return new ByProjectKeyProductDiscountsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java new file mode 100644 index 00000000000..e9e40795335 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductDiscount exists for a given key. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productDiscounts()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductDiscountsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyProductDiscountsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyProductDiscountsKeyByKeyHead(ByProjectKeyProductDiscountsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-discounts/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductDiscountsKeyByKeyHead that = (ByProjectKeyProductDiscountsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyProductDiscountsKeyByKeyHead copy() { + return new ByProjectKeyProductDiscountsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyRequestBuilder.java index 9cbb2aaa639..fb1d2d1b0d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyProductDiscountsKeyByKeyGet get() { return new ByProjectKeyProductDiscountsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyProductDiscountsKeyByKeyHead head() { + return new ByProjectKeyProductDiscountsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyProductDiscountsKeyByKeyPost post( com.commercetools.api.models.product_discount.ProductDiscountUpdate productDiscountUpdate) { return new ByProjectKeyProductDiscountsKeyByKeyPost(apiHttpClient, projectKey, key, productDiscountUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsRequestBuilder.java index 26eaee1c63c..d28dd076091 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyProductDiscountsGet get() { return new ByProjectKeyProductDiscountsGet(apiHttpClient, projectKey); } + public ByProjectKeyProductDiscountsHead head() { + return new ByProjectKeyProductDiscountsHead(apiHttpClient, projectKey); + } + public ByProjectKeyProductDiscountsPost post( com.commercetools.api.models.product_discount.ProductDiscountDraft productDiscountDraft) { return new ByProjectKeyProductDiscountsPost(apiHttpClient, projectKey, productDiscountDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java new file mode 100644 index 00000000000..ff511490a72 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if the current or staged representation of a Product exists for a given id. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productProjections()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductProjectionsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyProductProjectionsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyProductProjectionsByIDHead(ByProjectKeyProductProjectionsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-projections/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductProjectionsByIDHead that = (ByProjectKeyProductProjectionsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyProductProjectionsByIDHead copy() { + return new ByProjectKeyProductProjectionsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDRequestBuilder.java index 4b5bd35d67d..ed3319ca442 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyProductProjectionsByIDGet get() { return new ByProjectKeyProductProjectionsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyProductProjectionsByIDHead head() { + return new ByProjectKeyProductProjectionsByIDHead(apiHttpClient, projectKey, ID); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java new file mode 100644 index 00000000000..0d5535d94bc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if the current or staged representation of a Product exists for a given Query Predicate. Returns a 200 OK status if any ProductProjections match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productProjections()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductProjectionsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyProductProjectionsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyProductProjectionsHead(ByProjectKeyProductProjectionsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-projections", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyProductProjectionsHead + */ + public ByProjectKeyProductProjectionsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductProjectionsHead that = (ByProjectKeyProductProjectionsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyProductProjectionsHead copy() { + return new ByProjectKeyProductProjectionsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java new file mode 100644 index 00000000000..6407d49cd06 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java @@ -0,0 +1,121 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if the current or staged representation of a Product exists for a given key. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productProjections()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductProjectionsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyProductProjectionsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, + String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyProductProjectionsKeyByKeyHead(ByProjectKeyProductProjectionsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-projections/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductProjectionsKeyByKeyHead that = (ByProjectKeyProductProjectionsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyProductProjectionsKeyByKeyHead copy() { + return new ByProjectKeyProductProjectionsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyRequestBuilder.java index 01c666796ad..f97e6edf3dd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyRequestBuilder.java @@ -22,4 +22,8 @@ public ByProjectKeyProductProjectionsKeyByKeyGet get() { return new ByProjectKeyProductProjectionsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyProductProjectionsKeyByKeyHead head() { + return new ByProjectKeyProductProjectionsKeyByKeyHead(apiHttpClient, projectKey, key); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsRequestBuilder.java index 8650c075318..bc3176acc02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsRequestBuilder.java @@ -19,6 +19,10 @@ public ByProjectKeyProductProjectionsGet get() { return new ByProjectKeyProductProjectionsGet(apiHttpClient, projectKey); } + public ByProjectKeyProductProjectionsHead head() { + return new ByProjectKeyProductProjectionsHead(apiHttpClient, projectKey); + } + public ByProjectKeyProductProjectionsSearchRequestBuilder search() { return new ByProjectKeyProductProjectionsSearchRequestBuilder(apiHttpClient, projectKey); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java new file mode 100644 index 00000000000..89295519247 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductSelection exists for a given id. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productSelections()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductSelectionsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyProductSelectionsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyProductSelectionsByIDHead(ByProjectKeyProductSelectionsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-selections/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductSelectionsByIDHead that = (ByProjectKeyProductSelectionsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyProductSelectionsByIDHead copy() { + return new ByProjectKeyProductSelectionsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDRequestBuilder.java index f47f7dd3e74..33f5fe1b160 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyProductSelectionsByIDGet get() { return new ByProjectKeyProductSelectionsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyProductSelectionsByIDHead head() { + return new ByProjectKeyProductSelectionsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyProductSelectionsByIDPost post( com.commercetools.api.models.product_selection.ProductSelectionUpdate productSelectionUpdate) { return new ByProjectKeyProductSelectionsByIDPost(apiHttpClient, projectKey, ID, productSelectionUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java new file mode 100644 index 00000000000..b9308566316 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductSelection exists for a given Query Predicate. Returns a 200 OK status if any ProductSelections match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productSelections()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductSelectionsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyProductSelectionsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyProductSelectionsHead(ByProjectKeyProductSelectionsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-selections", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyProductSelectionsHead + */ + public ByProjectKeyProductSelectionsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductSelectionsHead that = (ByProjectKeyProductSelectionsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyProductSelectionsHead copy() { + return new ByProjectKeyProductSelectionsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java new file mode 100644 index 00000000000..c8942f865fb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ProductSelection exists for a given key. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .productSelections()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyProductSelectionsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyProductSelectionsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyProductSelectionsKeyByKeyHead(ByProjectKeyProductSelectionsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/product-selections/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyProductSelectionsKeyByKeyHead that = (ByProjectKeyProductSelectionsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyProductSelectionsKeyByKeyHead copy() { + return new ByProjectKeyProductSelectionsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyRequestBuilder.java index 0c48cd60648..ed77e061bec 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyProductSelectionsKeyByKeyGet get() { return new ByProjectKeyProductSelectionsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyProductSelectionsKeyByKeyHead head() { + return new ByProjectKeyProductSelectionsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyProductSelectionsKeyByKeyPost post( com.commercetools.api.models.product_selection.ProductSelectionUpdate productSelectionUpdate) { return new ByProjectKeyProductSelectionsKeyByKeyPost(apiHttpClient, projectKey, key, productSelectionUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsRequestBuilder.java index 936b62429e7..01d396e3aa9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyProductSelectionsGet get() { return new ByProjectKeyProductSelectionsGet(apiHttpClient, projectKey); } + public ByProjectKeyProductSelectionsHead head() { + return new ByProjectKeyProductSelectionsHead(apiHttpClient, projectKey); + } + public ByProjectKeyProductSelectionsPost post( com.commercetools.api.models.product_selection.ProductSelectionDraft productSelectionDraft) { return new ByProjectKeyProductSelectionsPost(apiHttpClient, projectKey, productSelectionDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java index 497767baa3a..85260717bb9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Product Type with given id exists. Responds with a 200 OK status if the Product Type exists or 404 Not Found otherwise.

+ *

Checks if a ProductType exists for a given id. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java index 7b5605a4391..d260f832664 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Check if Product Types exist. Responds with a 200 OK status if any Product Types match the Query Predicate, or 404 Not Found otherwise.

+ *

Checks if a ProductType exists for a given Query Predicate. Returns a 200 OK status if any ProductTypes match the Query Predicate or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java index e7cf8dc60d1..e3f81f7ac42 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Product Type with given key exists. Responds with a 200 OK status if the Product Type exists or 404 Not Found otherwise.

+ *

Checks if a ProductType exists for a given key. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java index dca93e738ce..a1cd8aca880 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Check if a Product exists with a specified id. Responds with a 200 OK status if the Product exists or 404 Not Found otherwise.

+ *

Checks if a Product exists for a given id. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java index d9499179075..a7d707687dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Check if Products exist. Responds with a 200 OK status if any Products match the Query Predicate, or 404 Not Found otherwise.

+ *

Checks if a Product exists for a given Query Predicate. Returns a 200 OK status if any Products match the Query Predicate or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java index 7b6324737a6..9f6a6660130 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Check if a Product exists with a specified key. Responds with a 200 OK status if the Product exists or 404 Not Found otherwise.

+ *

Checks if a Product exists for a given key. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java new file mode 100644 index 00000000000..a2613b76bdd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quoteRequests()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuoteRequestsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyQuoteRequestsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyQuoteRequestsByIDHead(ByProjectKeyQuoteRequestsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quote-requests/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuoteRequestsByIDHead that = (ByProjectKeyQuoteRequestsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyQuoteRequestsByIDHead copy() { + return new ByProjectKeyQuoteRequestsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDRequestBuilder.java index 0fc37905a44..f7bb62d8c0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyQuoteRequestsByIDGet get() { return new ByProjectKeyQuoteRequestsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyQuoteRequestsByIDHead head() { + return new ByProjectKeyQuoteRequestsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyQuoteRequestsByIDPost post( com.commercetools.api.models.quote_request.QuoteRequestUpdate quoteRequestUpdate) { return new ByProjectKeyQuoteRequestsByIDPost(apiHttpClient, projectKey, ID, quoteRequestUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java new file mode 100644 index 00000000000..5e1bd0aae28 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quoteRequests()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuoteRequestsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyQuoteRequestsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyQuoteRequestsHead(ByProjectKeyQuoteRequestsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quote-requests", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyQuoteRequestsHead + */ + public ByProjectKeyQuoteRequestsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuoteRequestsHead that = (ByProjectKeyQuoteRequestsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyQuoteRequestsHead copy() { + return new ByProjectKeyQuoteRequestsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java new file mode 100644 index 00000000000..bb5c626026d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quoteRequests()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuoteRequestsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyQuoteRequestsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyQuoteRequestsKeyByKeyHead(ByProjectKeyQuoteRequestsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quote-requests/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuoteRequestsKeyByKeyHead that = (ByProjectKeyQuoteRequestsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyQuoteRequestsKeyByKeyHead copy() { + return new ByProjectKeyQuoteRequestsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyRequestBuilder.java index c999d100749..0a9f8839fa7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyQuoteRequestsKeyByKeyGet get() { return new ByProjectKeyQuoteRequestsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyQuoteRequestsKeyByKeyHead head() { + return new ByProjectKeyQuoteRequestsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyQuoteRequestsKeyByKeyPost post( com.commercetools.api.models.quote_request.QuoteRequestUpdate quoteRequestUpdate) { return new ByProjectKeyQuoteRequestsKeyByKeyPost(apiHttpClient, projectKey, key, quoteRequestUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsRequestBuilder.java index e9f82197c95..e40dcfb0718 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyQuoteRequestsGet get() { return new ByProjectKeyQuoteRequestsGet(apiHttpClient, projectKey); } + public ByProjectKeyQuoteRequestsHead head() { + return new ByProjectKeyQuoteRequestsHead(apiHttpClient, projectKey); + } + public ByProjectKeyQuoteRequestsPost post( com.commercetools.api.models.quote_request.QuoteRequestDraft quoteRequestDraft) { return new ByProjectKeyQuoteRequestsPost(apiHttpClient, projectKey, quoteRequestDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java new file mode 100644 index 00000000000..eb3330de159 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quotes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuotesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyQuotesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyQuotesByIDHead(ByProjectKeyQuotesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quotes/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuotesByIDHead that = (ByProjectKeyQuotesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyQuotesByIDHead copy() { + return new ByProjectKeyQuotesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDRequestBuilder.java index 5a42f98c343..fd90a3a76a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyQuotesByIDGet get() { return new ByProjectKeyQuotesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyQuotesByIDHead head() { + return new ByProjectKeyQuotesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyQuotesByIDPost post(com.commercetools.api.models.quote.QuoteUpdate quoteUpdate) { return new ByProjectKeyQuotesByIDPost(apiHttpClient, projectKey, ID, quoteUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java new file mode 100644 index 00000000000..7b2a40a8a45 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quotes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuotesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyQuotesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyQuotesHead(ByProjectKeyQuotesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quotes", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyQuotesHead + */ + public ByProjectKeyQuotesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuotesHead that = (ByProjectKeyQuotesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyQuotesHead copy() { + return new ByProjectKeyQuotesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java new file mode 100644 index 00000000000..c1295111271 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .quotes()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyQuotesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyQuotesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyQuotesKeyByKeyHead(ByProjectKeyQuotesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/quotes/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyQuotesKeyByKeyHead that = (ByProjectKeyQuotesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyQuotesKeyByKeyHead copy() { + return new ByProjectKeyQuotesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyRequestBuilder.java index 1bc0a907385..90ffadbea7c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyQuotesKeyByKeyGet get() { return new ByProjectKeyQuotesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyQuotesKeyByKeyHead head() { + return new ByProjectKeyQuotesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyQuotesKeyByKeyPost post(com.commercetools.api.models.quote.QuoteUpdate quoteUpdate) { return new ByProjectKeyQuotesKeyByKeyPost(apiHttpClient, projectKey, key, quoteUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesRequestBuilder.java index ee80840ff6a..3f7298da0d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyQuotesGet get() { return new ByProjectKeyQuotesGet(apiHttpClient, projectKey); } + public ByProjectKeyQuotesHead head() { + return new ByProjectKeyQuotesHead(apiHttpClient, projectKey); + } + public ByProjectKeyQuotesPost post(com.commercetools.api.models.quote.QuoteDraft quoteDraft) { return new ByProjectKeyQuotesPost(apiHttpClient, projectKey, quoteDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java index bc3fcad2841..d131037626e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyGet get() { return new ByProjectKeyGet(apiHttpClient, projectKey); } + public ByProjectKeyHead head() { + return new ByProjectKeyHead(apiHttpClient, projectKey); + } + public ByProjectKeyPost post(com.commercetools.api.models.project.ProjectUpdate projectUpdate) { return new ByProjectKeyPost(apiHttpClient, projectKey, projectUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java new file mode 100644 index 00000000000..9d2225462f9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Review exists for a given id. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .reviews()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyReviewsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyReviewsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyReviewsByIDHead(ByProjectKeyReviewsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/reviews/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyReviewsByIDHead that = (ByProjectKeyReviewsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyReviewsByIDHead copy() { + return new ByProjectKeyReviewsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDRequestBuilder.java index 85d6fdc24d3..a5623923eb7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyReviewsByIDGet get() { return new ByProjectKeyReviewsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyReviewsByIDHead head() { + return new ByProjectKeyReviewsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyReviewsByIDPost post(com.commercetools.api.models.review.ReviewUpdate reviewUpdate) { return new ByProjectKeyReviewsByIDPost(apiHttpClient, projectKey, ID, reviewUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java new file mode 100644 index 00000000000..d17c4cd94da --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Review exists for a given Query Predicate. Returns a 200 OK status if any Reviews match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .reviews()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyReviewsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyReviewsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyReviewsHead(ByProjectKeyReviewsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/reviews", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyReviewsHead + */ + public ByProjectKeyReviewsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyReviewsHead that = (ByProjectKeyReviewsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyReviewsHead copy() { + return new ByProjectKeyReviewsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java new file mode 100644 index 00000000000..0647a2f9fa7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Review exists for a given key. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .reviews()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyReviewsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyReviewsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyReviewsKeyByKeyHead(ByProjectKeyReviewsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/reviews/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyReviewsKeyByKeyHead that = (ByProjectKeyReviewsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyReviewsKeyByKeyHead copy() { + return new ByProjectKeyReviewsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyRequestBuilder.java index 4997adc488c..642000468ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyReviewsKeyByKeyGet get() { return new ByProjectKeyReviewsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyReviewsKeyByKeyHead head() { + return new ByProjectKeyReviewsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyReviewsKeyByKeyPost post(com.commercetools.api.models.review.ReviewUpdate reviewUpdate) { return new ByProjectKeyReviewsKeyByKeyPost(apiHttpClient, projectKey, key, reviewUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsRequestBuilder.java index d731cf8ab37..dee3648b778 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyReviewsGet get() { return new ByProjectKeyReviewsGet(apiHttpClient, projectKey); } + public ByProjectKeyReviewsHead head() { + return new ByProjectKeyReviewsHead(apiHttpClient, projectKey); + } + public ByProjectKeyReviewsPost post(com.commercetools.api.models.review.ReviewDraft reviewDraft) { return new ByProjectKeyReviewsPost(apiHttpClient, projectKey, reviewDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java new file mode 100644 index 00000000000..a9d1dbe7b9a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod exists for a given id. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyShippingMethodsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyShippingMethodsByIDHead(ByProjectKeyShippingMethodsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsByIDHead that = (ByProjectKeyShippingMethodsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsByIDHead copy() { + return new ByProjectKeyShippingMethodsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDRequestBuilder.java index 72819e907ff..221e67fcad7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyShippingMethodsByIDGet get() { return new ByProjectKeyShippingMethodsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyShippingMethodsByIDHead head() { + return new ByProjectKeyShippingMethodsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyShippingMethodsByIDPost post( com.commercetools.api.models.shipping_method.ShippingMethodUpdate shippingMethodUpdate) { return new ByProjectKeyShippingMethodsByIDPost(apiHttpClient, projectKey, ID, shippingMethodUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java new file mode 100644 index 00000000000..420ac3b4fdf --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod exists for a given Query Predicate. Returns a 200 OK status if any ShippingMethods match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShippingMethodsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShippingMethodsHead(ByProjectKeyShippingMethodsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyShippingMethodsHead + */ + public ByProjectKeyShippingMethodsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsHead that = (ByProjectKeyShippingMethodsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsHead copy() { + return new ByProjectKeyShippingMethodsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java new file mode 100644 index 00000000000..57ae09819c9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod exists for a given key. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyShippingMethodsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyShippingMethodsKeyByKeyHead(ByProjectKeyShippingMethodsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsKeyByKeyHead that = (ByProjectKeyShippingMethodsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsKeyByKeyHead copy() { + return new ByProjectKeyShippingMethodsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyRequestBuilder.java index 7eca737d95a..bf7fbe363f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyShippingMethodsKeyByKeyGet get() { return new ByProjectKeyShippingMethodsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyShippingMethodsKeyByKeyHead head() { + return new ByProjectKeyShippingMethodsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyShippingMethodsKeyByKeyPost post( com.commercetools.api.models.shipping_method.ShippingMethodUpdate shippingMethodUpdate) { return new ByProjectKeyShippingMethodsKeyByKeyPost(apiHttpClient, projectKey, key, shippingMethodUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartHead.java new file mode 100644 index 00000000000..50d06aec0fb --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartHead.java @@ -0,0 +1,197 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod exists for the given Cart. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .matchingCart()
+ *            .head()
+ *            .withCartId(cartId)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsMatchingCartHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShippingMethodsMatchingCartHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShippingMethodsMatchingCartHead(ByProjectKeyShippingMethodsMatchingCartHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/matching-cart", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getCartId() { + return this.getQueryParam("cartId"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set cartId with the specified value + * @param cartId value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead withCartId(final TValue cartId) { + return copy().withQueryParam("cartId", cartId); + } + + /** + * add additional cartId query parameter + * @param cartId value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead addCartId(final TValue cartId) { + return copy().addQueryParam("cartId", cartId); + } + + /** + * set cartId with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead withCartId(final Supplier supplier) { + return copy().withQueryParam("cartId", supplier.get()); + } + + /** + * add additional cartId query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead addCartId(final Supplier supplier) { + return copy().addQueryParam("cartId", supplier.get()); + } + + /** + * set cartId with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead withCartId(final Function op) { + return copy().withQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * add additional cartId query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead addCartId(final Function op) { + return copy().addQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * set cartId with the specified values + * @param cartId values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead withCartId(final Collection cartId) { + return copy().withoutQueryParam("cartId") + .addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional cartId query parameters + * @param cartId values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartHead + */ + public ByProjectKeyShippingMethodsMatchingCartHead addCartId(final Collection cartId) { + return copy().addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsMatchingCartHead that = (ByProjectKeyShippingMethodsMatchingCartHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsMatchingCartHead copy() { + return new ByProjectKeyShippingMethodsMatchingCartHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationHead.java new file mode 100644 index 00000000000..d6986814a0b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationHead.java @@ -0,0 +1,370 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod that can ship to the given Location exists for the given Cart. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .matchingCartLocation()
+ *            .head()
+ *            .withCountry(country)
+ *            .withCartId(cartId)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsMatchingCartLocationHead extends + TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShippingMethodsMatchingCartLocationHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShippingMethodsMatchingCartLocationHead(ByProjectKeyShippingMethodsMatchingCartLocationHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/matching-cart-location", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getCountry() { + return this.getQueryParam("country"); + } + + public List getState() { + return this.getQueryParam("state"); + } + + public List getCartId() { + return this.getQueryParam("cartId"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set country with the specified value + * @param country value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry(final TValue country) { + return copy().withQueryParam("country", country); + } + + /** + * add additional country query parameter + * @param country value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry(final TValue country) { + return copy().addQueryParam("country", country); + } + + /** + * set country with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry(final Supplier supplier) { + return copy().withQueryParam("country", supplier.get()); + } + + /** + * add additional country query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry(final Supplier supplier) { + return copy().addQueryParam("country", supplier.get()); + } + + /** + * set country with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry( + final Function op) { + return copy().withQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * add additional country query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry( + final Function op) { + return copy().addQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * set country with the specified values + * @param country values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry(final Collection country) { + return copy().withoutQueryParam("country") + .addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional country query parameters + * @param country values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry(final Collection country) { + return copy().addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * set state with the specified value + * @param state value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withState(final TValue state) { + return copy().withQueryParam("state", state); + } + + /** + * add additional state query parameter + * @param state value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addState(final TValue state) { + return copy().addQueryParam("state", state); + } + + /** + * set state with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withState(final Supplier supplier) { + return copy().withQueryParam("state", supplier.get()); + } + + /** + * add additional state query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addState(final Supplier supplier) { + return copy().addQueryParam("state", supplier.get()); + } + + /** + * set state with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withState( + final Function op) { + return copy().withQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * add additional state query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addState( + final Function op) { + return copy().addQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * set state with the specified values + * @param state values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withState(final Collection state) { + return copy().withoutQueryParam("state") + .addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional state query parameters + * @param state values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addState(final Collection state) { + return copy().addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + /** + * set cartId with the specified value + * @param cartId value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId(final TValue cartId) { + return copy().withQueryParam("cartId", cartId); + } + + /** + * add additional cartId query parameter + * @param cartId value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId(final TValue cartId) { + return copy().addQueryParam("cartId", cartId); + } + + /** + * set cartId with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId(final Supplier supplier) { + return copy().withQueryParam("cartId", supplier.get()); + } + + /** + * add additional cartId query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId(final Supplier supplier) { + return copy().addQueryParam("cartId", supplier.get()); + } + + /** + * set cartId with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId( + final Function op) { + return copy().withQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * add additional cartId query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId( + final Function op) { + return copy().addQueryParam("cartId", op.apply(new StringBuilder())); + } + + /** + * set cartId with the specified values + * @param cartId values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId(final Collection cartId) { + return copy().withoutQueryParam("cartId") + .addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional cartId query parameters + * @param cartId values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingCartLocationHead + */ + public ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId(final Collection cartId) { + return copy().addQueryParams( + cartId.stream().map(s -> new ParamEntry<>("cartId", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsMatchingCartLocationHead that = (ByProjectKeyShippingMethodsMatchingCartLocationHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsMatchingCartLocationHead copy() { + return new ByProjectKeyShippingMethodsMatchingCartLocationHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.java index 090dd3329e5..24f41679787 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.java @@ -20,4 +20,8 @@ public ByProjectKeyShippingMethodsMatchingCartLocationGet get() { return new ByProjectKeyShippingMethodsMatchingCartLocationGet(apiHttpClient, projectKey); } + public ByProjectKeyShippingMethodsMatchingCartLocationHead head() { + return new ByProjectKeyShippingMethodsMatchingCartLocationHead(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartRequestBuilder.java index 64c422c2f45..f4feb74c0ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingCartRequestBuilder.java @@ -20,4 +20,8 @@ public ByProjectKeyShippingMethodsMatchingCartGet get() { return new ByProjectKeyShippingMethodsMatchingCartGet(apiHttpClient, projectKey); } + public ByProjectKeyShippingMethodsMatchingCartHead head() { + return new ByProjectKeyShippingMethodsMatchingCartHead(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationHead.java new file mode 100644 index 00000000000..d960342b6aa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationHead.java @@ -0,0 +1,367 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod that can ship to the given Location exists. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .matchingLocation()
+ *            .head()
+ *            .withCountry(country)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsMatchingLocationHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShippingMethodsMatchingLocationHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShippingMethodsMatchingLocationHead(ByProjectKeyShippingMethodsMatchingLocationHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/matching-location", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getCountry() { + return this.getQueryParam("country"); + } + + public List getState() { + return this.getQueryParam("state"); + } + + public List getCurrency() { + return this.getQueryParam("currency"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set country with the specified value + * @param country value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCountry(final TValue country) { + return copy().withQueryParam("country", country); + } + + /** + * add additional country query parameter + * @param country value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCountry(final TValue country) { + return copy().addQueryParam("country", country); + } + + /** + * set country with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCountry(final Supplier supplier) { + return copy().withQueryParam("country", supplier.get()); + } + + /** + * add additional country query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCountry(final Supplier supplier) { + return copy().addQueryParam("country", supplier.get()); + } + + /** + * set country with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCountry( + final Function op) { + return copy().withQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * add additional country query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCountry(final Function op) { + return copy().addQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * set country with the specified values + * @param country values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCountry(final Collection country) { + return copy().withoutQueryParam("country") + .addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional country query parameters + * @param country values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCountry(final Collection country) { + return copy().addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * set state with the specified value + * @param state value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withState(final TValue state) { + return copy().withQueryParam("state", state); + } + + /** + * add additional state query parameter + * @param state value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addState(final TValue state) { + return copy().addQueryParam("state", state); + } + + /** + * set state with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withState(final Supplier supplier) { + return copy().withQueryParam("state", supplier.get()); + } + + /** + * add additional state query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addState(final Supplier supplier) { + return copy().addQueryParam("state", supplier.get()); + } + + /** + * set state with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withState(final Function op) { + return copy().withQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * add additional state query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addState(final Function op) { + return copy().addQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * set state with the specified values + * @param state values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withState(final Collection state) { + return copy().withoutQueryParam("state") + .addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional state query parameters + * @param state values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addState(final Collection state) { + return copy().addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + /** + * set currency with the specified value + * @param currency value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCurrency(final TValue currency) { + return copy().withQueryParam("currency", currency); + } + + /** + * add additional currency query parameter + * @param currency value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCurrency(final TValue currency) { + return copy().addQueryParam("currency", currency); + } + + /** + * set currency with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCurrency(final Supplier supplier) { + return copy().withQueryParam("currency", supplier.get()); + } + + /** + * add additional currency query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCurrency(final Supplier supplier) { + return copy().addQueryParam("currency", supplier.get()); + } + + /** + * set currency with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCurrency( + final Function op) { + return copy().withQueryParam("currency", op.apply(new StringBuilder())); + } + + /** + * add additional currency query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCurrency( + final Function op) { + return copy().addQueryParam("currency", op.apply(new StringBuilder())); + } + + /** + * set currency with the specified values + * @param currency values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead withCurrency(final Collection currency) { + return copy().withoutQueryParam("currency") + .addQueryParams(currency.stream() + .map(s -> new ParamEntry<>("currency", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional currency query parameters + * @param currency values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingLocationHead + */ + public ByProjectKeyShippingMethodsMatchingLocationHead addCurrency(final Collection currency) { + return copy().addQueryParams( + currency.stream().map(s -> new ParamEntry<>("currency", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsMatchingLocationHead that = (ByProjectKeyShippingMethodsMatchingLocationHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsMatchingLocationHead copy() { + return new ByProjectKeyShippingMethodsMatchingLocationHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationRequestBuilder.java index 544a77f0b0a..c5815398c5b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingLocationRequestBuilder.java @@ -20,4 +20,8 @@ public ByProjectKeyShippingMethodsMatchingLocationGet get() { return new ByProjectKeyShippingMethodsMatchingLocationGet(apiHttpClient, projectKey); } + public ByProjectKeyShippingMethodsMatchingLocationHead head() { + return new ByProjectKeyShippingMethodsMatchingLocationHead(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditHead.java new file mode 100644 index 00000000000..c1de020a683 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditHead.java @@ -0,0 +1,371 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShippingMethod that can ship to the given Location exists for the given OrderEdit. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shippingMethods()
+ *            .matchingOrderedit()
+ *            .head()
+ *            .withOrderEditId(orderEditId)
+ *            .withCountry(country)
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShippingMethodsMatchingOrdereditHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShippingMethodsMatchingOrdereditHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShippingMethodsMatchingOrdereditHead(ByProjectKeyShippingMethodsMatchingOrdereditHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shipping-methods/matching-orderedit", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getOrderEditId() { + return this.getQueryParam("orderEditId"); + } + + public List getCountry() { + return this.getQueryParam("country"); + } + + public List getState() { + return this.getQueryParam("state"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set orderEditId with the specified value + * @param orderEditId value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withOrderEditId(final TValue orderEditId) { + return copy().withQueryParam("orderEditId", orderEditId); + } + + /** + * add additional orderEditId query parameter + * @param orderEditId value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addOrderEditId(final TValue orderEditId) { + return copy().addQueryParam("orderEditId", orderEditId); + } + + /** + * set orderEditId with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withOrderEditId(final Supplier supplier) { + return copy().withQueryParam("orderEditId", supplier.get()); + } + + /** + * add additional orderEditId query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addOrderEditId(final Supplier supplier) { + return copy().addQueryParam("orderEditId", supplier.get()); + } + + /** + * set orderEditId with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withOrderEditId( + final Function op) { + return copy().withQueryParam("orderEditId", op.apply(new StringBuilder())); + } + + /** + * add additional orderEditId query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addOrderEditId( + final Function op) { + return copy().addQueryParam("orderEditId", op.apply(new StringBuilder())); + } + + /** + * set orderEditId with the specified values + * @param orderEditId values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withOrderEditId( + final Collection orderEditId) { + return copy().withoutQueryParam("orderEditId") + .addQueryParams(orderEditId.stream() + .map(s -> new ParamEntry<>("orderEditId", s.toString())) + .collect(Collectors.toList())); + } + + /** + * add additional orderEditId query parameters + * @param orderEditId values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addOrderEditId( + final Collection orderEditId) { + return copy().addQueryParams( + orderEditId.stream().map(s -> new ParamEntry<>("orderEditId", s.toString())).collect(Collectors.toList())); + } + + /** + * set country with the specified value + * @param country value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withCountry(final TValue country) { + return copy().withQueryParam("country", country); + } + + /** + * add additional country query parameter + * @param country value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addCountry(final TValue country) { + return copy().addQueryParam("country", country); + } + + /** + * set country with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withCountry(final Supplier supplier) { + return copy().withQueryParam("country", supplier.get()); + } + + /** + * add additional country query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addCountry(final Supplier supplier) { + return copy().addQueryParam("country", supplier.get()); + } + + /** + * set country with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withCountry( + final Function op) { + return copy().withQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * add additional country query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addCountry( + final Function op) { + return copy().addQueryParam("country", op.apply(new StringBuilder())); + } + + /** + * set country with the specified values + * @param country values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withCountry(final Collection country) { + return copy().withoutQueryParam("country") + .addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional country query parameters + * @param country values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addCountry(final Collection country) { + return copy().addQueryParams( + country.stream().map(s -> new ParamEntry<>("country", s.toString())).collect(Collectors.toList())); + } + + /** + * set state with the specified value + * @param state value to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withState(final TValue state) { + return copy().withQueryParam("state", state); + } + + /** + * add additional state query parameter + * @param state value to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addState(final TValue state) { + return copy().addQueryParam("state", state); + } + + /** + * set state with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withState(final Supplier supplier) { + return copy().withQueryParam("state", supplier.get()); + } + + /** + * add additional state query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addState(final Supplier supplier) { + return copy().addQueryParam("state", supplier.get()); + } + + /** + * set state with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withState(final Function op) { + return copy().withQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * add additional state query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addState(final Function op) { + return copy().addQueryParam("state", op.apply(new StringBuilder())); + } + + /** + * set state with the specified values + * @param state values to be set + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead withState(final Collection state) { + return copy().withoutQueryParam("state") + .addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional state query parameters + * @param state values to be added + * @param value type + * @return ByProjectKeyShippingMethodsMatchingOrdereditHead + */ + public ByProjectKeyShippingMethodsMatchingOrdereditHead addState(final Collection state) { + return copy().addQueryParams( + state.stream().map(s -> new ParamEntry<>("state", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShippingMethodsMatchingOrdereditHead that = (ByProjectKeyShippingMethodsMatchingOrdereditHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShippingMethodsMatchingOrdereditHead copy() { + return new ByProjectKeyShippingMethodsMatchingOrdereditHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder.java index 7fa5db43037..1ea2775aef3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder.java @@ -20,4 +20,8 @@ public ByProjectKeyShippingMethodsMatchingOrdereditGet get() { return new ByProjectKeyShippingMethodsMatchingOrdereditGet(apiHttpClient, projectKey); } + public ByProjectKeyShippingMethodsMatchingOrdereditHead head() { + return new ByProjectKeyShippingMethodsMatchingOrdereditHead(apiHttpClient, projectKey); + } + } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsRequestBuilder.java index 8852d1cd162..ff8c865d321 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyShippingMethodsGet get() { return new ByProjectKeyShippingMethodsGet(apiHttpClient, projectKey); } + public ByProjectKeyShippingMethodsHead head() { + return new ByProjectKeyShippingMethodsHead(apiHttpClient, projectKey); + } + public ByProjectKeyShippingMethodsPost post( com.commercetools.api.models.shipping_method.ShippingMethodDraft shippingMethodDraft) { return new ByProjectKeyShippingMethodsPost(apiHttpClient, projectKey, shippingMethodDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java new file mode 100644 index 00000000000..10504a2afac --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shoppingLists()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShoppingListsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyShoppingListsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyShoppingListsByIDHead(ByProjectKeyShoppingListsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shopping-lists/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShoppingListsByIDHead that = (ByProjectKeyShoppingListsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyShoppingListsByIDHead copy() { + return new ByProjectKeyShoppingListsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDRequestBuilder.java index 4daca037ad9..6aa3b626974 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyShoppingListsByIDGet get() { return new ByProjectKeyShoppingListsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyShoppingListsByIDHead head() { + return new ByProjectKeyShoppingListsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyShoppingListsByIDPost post( com.commercetools.api.models.shopping_list.ShoppingListUpdate shoppingListUpdate) { return new ByProjectKeyShoppingListsByIDPost(apiHttpClient, projectKey, ID, shoppingListUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java new file mode 100644 index 00000000000..f7fb916edf4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shoppingLists()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShoppingListsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyShoppingListsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyShoppingListsHead(ByProjectKeyShoppingListsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shopping-lists", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyShoppingListsHead + */ + public ByProjectKeyShoppingListsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShoppingListsHead that = (ByProjectKeyShoppingListsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyShoppingListsHead copy() { + return new ByProjectKeyShoppingListsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java new file mode 100644 index 00000000000..47cb20ac438 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .shoppingLists()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyShoppingListsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyShoppingListsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyShoppingListsKeyByKeyHead(ByProjectKeyShoppingListsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/shopping-lists/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyShoppingListsKeyByKeyHead that = (ByProjectKeyShoppingListsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyShoppingListsKeyByKeyHead copy() { + return new ByProjectKeyShoppingListsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyRequestBuilder.java index 5c3c4e1b887..e59a108e9fb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyShoppingListsKeyByKeyGet get() { return new ByProjectKeyShoppingListsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyShoppingListsKeyByKeyHead head() { + return new ByProjectKeyShoppingListsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyShoppingListsKeyByKeyPost post( com.commercetools.api.models.shopping_list.ShoppingListUpdate shoppingListUpdate) { return new ByProjectKeyShoppingListsKeyByKeyPost(apiHttpClient, projectKey, key, shoppingListUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsRequestBuilder.java index a34bed1b348..d67f05f4d7e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyShoppingListsGet get() { return new ByProjectKeyShoppingListsGet(apiHttpClient, projectKey); } + public ByProjectKeyShoppingListsHead head() { + return new ByProjectKeyShoppingListsHead(apiHttpClient, projectKey); + } + public ByProjectKeyShoppingListsPost post( com.commercetools.api.models.shopping_list.ShoppingListDraft shoppingListDraft) { return new ByProjectKeyShoppingListsPost(apiHttpClient, projectKey, shoppingListDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java new file mode 100644 index 00000000000..5a54d17f7d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StagedQuote exists for a given id. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stagedQuotes()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStagedQuotesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyStagedQuotesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyStagedQuotesByIDHead(ByProjectKeyStagedQuotesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/staged-quotes/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStagedQuotesByIDHead that = (ByProjectKeyStagedQuotesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyStagedQuotesByIDHead copy() { + return new ByProjectKeyStagedQuotesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDRequestBuilder.java index 9936708307f..b3539c3f3b5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStagedQuotesByIDGet get() { return new ByProjectKeyStagedQuotesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyStagedQuotesByIDHead head() { + return new ByProjectKeyStagedQuotesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyStagedQuotesByIDPost post( com.commercetools.api.models.staged_quote.StagedQuoteUpdate stagedQuoteUpdate) { return new ByProjectKeyStagedQuotesByIDPost(apiHttpClient, projectKey, ID, stagedQuoteUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java new file mode 100644 index 00000000000..14f10be7bfe --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK status if any StagedQuotes match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stagedQuotes()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStagedQuotesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyStagedQuotesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyStagedQuotesHead(ByProjectKeyStagedQuotesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/staged-quotes", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyStagedQuotesHead + */ + public ByProjectKeyStagedQuotesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStagedQuotesHead that = (ByProjectKeyStagedQuotesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyStagedQuotesHead copy() { + return new ByProjectKeyStagedQuotesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java new file mode 100644 index 00000000000..d2985ed4694 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StagedQuote exists for a given key. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stagedQuotes()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStagedQuotesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyStagedQuotesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyStagedQuotesKeyByKeyHead(ByProjectKeyStagedQuotesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/staged-quotes/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStagedQuotesKeyByKeyHead that = (ByProjectKeyStagedQuotesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyStagedQuotesKeyByKeyHead copy() { + return new ByProjectKeyStagedQuotesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyRequestBuilder.java index 57b69ec2d90..de7f43abad1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStagedQuotesKeyByKeyGet get() { return new ByProjectKeyStagedQuotesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyStagedQuotesKeyByKeyHead head() { + return new ByProjectKeyStagedQuotesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyStagedQuotesKeyByKeyPost post( com.commercetools.api.models.staged_quote.StagedQuoteUpdate stagedQuoteUpdate) { return new ByProjectKeyStagedQuotesKeyByKeyPost(apiHttpClient, projectKey, key, stagedQuoteUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesRequestBuilder.java index 83b9456f1c8..d71ba276893 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyStagedQuotesGet get() { return new ByProjectKeyStagedQuotesGet(apiHttpClient, projectKey); } + public ByProjectKeyStagedQuotesHead head() { + return new ByProjectKeyStagedQuotesHead(apiHttpClient, projectKey); + } + public ByProjectKeyStagedQuotesPost post( com.commercetools.api.models.staged_quote.StagedQuoteDraft stagedQuoteDraft) { return new ByProjectKeyStagedQuotesPost(apiHttpClient, projectKey, stagedQuoteDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java new file mode 100644 index 00000000000..b680488cb24 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StandalonePrice exists for a given id. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .standalonePrices()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStandalonePricesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyStandalonePricesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyStandalonePricesByIDHead(ByProjectKeyStandalonePricesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/standalone-prices/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStandalonePricesByIDHead that = (ByProjectKeyStandalonePricesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyStandalonePricesByIDHead copy() { + return new ByProjectKeyStandalonePricesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDRequestBuilder.java index cf9d819d8c4..a87727bbdcd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStandalonePricesByIDGet get() { return new ByProjectKeyStandalonePricesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyStandalonePricesByIDHead head() { + return new ByProjectKeyStandalonePricesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyStandalonePricesByIDPost post( com.commercetools.api.models.standalone_price.StandalonePriceUpdate standalonePriceUpdate) { return new ByProjectKeyStandalonePricesByIDPost(apiHttpClient, projectKey, ID, standalonePriceUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java new file mode 100644 index 00000000000..f6d99cd85a9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StandalonePrice exists for a given Query Predicate. Returns a 200 OK status if any StandalonePrices match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .standalonePrices()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStandalonePricesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyStandalonePricesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyStandalonePricesHead(ByProjectKeyStandalonePricesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/standalone-prices", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyStandalonePricesHead + */ + public ByProjectKeyStandalonePricesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStandalonePricesHead that = (ByProjectKeyStandalonePricesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyStandalonePricesHead copy() { + return new ByProjectKeyStandalonePricesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java new file mode 100644 index 00000000000..d13efc2b5ca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a StandalonePrice exists for a given key. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .standalonePrices()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStandalonePricesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyStandalonePricesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyStandalonePricesKeyByKeyHead(ByProjectKeyStandalonePricesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/standalone-prices/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStandalonePricesKeyByKeyHead that = (ByProjectKeyStandalonePricesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyStandalonePricesKeyByKeyHead copy() { + return new ByProjectKeyStandalonePricesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyRequestBuilder.java index 84cdf6dcf35..2139a979186 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStandalonePricesKeyByKeyGet get() { return new ByProjectKeyStandalonePricesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyStandalonePricesKeyByKeyHead head() { + return new ByProjectKeyStandalonePricesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyStandalonePricesKeyByKeyPost post( com.commercetools.api.models.standalone_price.StandalonePriceUpdate standalonePriceUpdate) { return new ByProjectKeyStandalonePricesKeyByKeyPost(apiHttpClient, projectKey, key, standalonePriceUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesRequestBuilder.java index b85f1470122..52e31cc7eab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyStandalonePricesGet get() { return new ByProjectKeyStandalonePricesGet(apiHttpClient, projectKey); } + public ByProjectKeyStandalonePricesHead head() { + return new ByProjectKeyStandalonePricesHead(apiHttpClient, projectKey); + } + public ByProjectKeyStandalonePricesPost post( com.commercetools.api.models.standalone_price.StandalonePriceDraft standalonePriceDraft) { return new ByProjectKeyStandalonePricesPost(apiHttpClient, projectKey, standalonePriceDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java new file mode 100644 index 00000000000..124865d592a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a State exists for a given id. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .states()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStatesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyStatesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyStatesByIDHead(ByProjectKeyStatesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/states/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStatesByIDHead that = (ByProjectKeyStatesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyStatesByIDHead copy() { + return new ByProjectKeyStatesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDRequestBuilder.java index f1df44a196e..616e3e97ecc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStatesByIDGet get() { return new ByProjectKeyStatesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyStatesByIDHead head() { + return new ByProjectKeyStatesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyStatesByIDPost post(com.commercetools.api.models.state.StateUpdate stateUpdate) { return new ByProjectKeyStatesByIDPost(apiHttpClient, projectKey, ID, stateUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java new file mode 100644 index 00000000000..d912aa14624 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a State exists for a given Query Predicate. Returns a 200 OK status if any States match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .states()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStatesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyStatesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyStatesHead(ByProjectKeyStatesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/states", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyStatesHead + */ + public ByProjectKeyStatesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStatesHead that = (ByProjectKeyStatesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyStatesHead copy() { + return new ByProjectKeyStatesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java new file mode 100644 index 00000000000..f213c71cea0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a State exists for a given key. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .states()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStatesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyStatesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyStatesKeyByKeyHead(ByProjectKeyStatesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/states/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStatesKeyByKeyHead that = (ByProjectKeyStatesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyStatesKeyByKeyHead copy() { + return new ByProjectKeyStatesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyRequestBuilder.java index a5330f2aef9..837f34cfda2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStatesKeyByKeyGet get() { return new ByProjectKeyStatesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyStatesKeyByKeyHead head() { + return new ByProjectKeyStatesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyStatesKeyByKeyPost post(com.commercetools.api.models.state.StateUpdate stateUpdate) { return new ByProjectKeyStatesKeyByKeyPost(apiHttpClient, projectKey, key, stateUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesRequestBuilder.java index fe1d2dbe3bd..faa82033687 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyStatesGet get() { return new ByProjectKeyStatesGet(apiHttpClient, projectKey); } + public ByProjectKeyStatesHead head() { + return new ByProjectKeyStatesHead(apiHttpClient, projectKey); + } + public ByProjectKeyStatesPost post(com.commercetools.api.models.state.StateDraft stateDraft) { return new ByProjectKeyStatesPost(apiHttpClient, projectKey, stateDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java new file mode 100644 index 00000000000..bc0b54ee798 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Store exists for a given id. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stores()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStoresByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyStoresByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyStoresByIDHead(ByProjectKeyStoresByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/stores/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStoresByIDHead that = (ByProjectKeyStoresByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyStoresByIDHead copy() { + return new ByProjectKeyStoresByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDRequestBuilder.java index ee749607943..e7a5897057c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStoresByIDGet get() { return new ByProjectKeyStoresByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyStoresByIDHead head() { + return new ByProjectKeyStoresByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyStoresByIDPost post(com.commercetools.api.models.store.StoreUpdate storeUpdate) { return new ByProjectKeyStoresByIDPost(apiHttpClient, projectKey, ID, storeUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java new file mode 100644 index 00000000000..1fd357dec61 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Store exists for a given Query Predicate. Returns a 200 OK status if any Stores match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stores()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStoresHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyStoresHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyStoresHead(ByProjectKeyStoresHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/stores", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyStoresHead + */ + public ByProjectKeyStoresHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStoresHead that = (ByProjectKeyStoresHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyStoresHead copy() { + return new ByProjectKeyStoresHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java new file mode 100644 index 00000000000..bb4c511ea69 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Store exists for a given key. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .stores()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyStoresKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyStoresKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyStoresKeyByKeyHead(ByProjectKeyStoresKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/stores/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyStoresKeyByKeyHead that = (ByProjectKeyStoresKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyStoresKeyByKeyHead copy() { + return new ByProjectKeyStoresKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyRequestBuilder.java index 13b0cf0d56f..b3e33ee0c20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyStoresKeyByKeyGet get() { return new ByProjectKeyStoresKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyStoresKeyByKeyHead head() { + return new ByProjectKeyStoresKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyStoresKeyByKeyPost post(com.commercetools.api.models.store.StoreUpdate storeUpdate) { return new ByProjectKeyStoresKeyByKeyPost(apiHttpClient, projectKey, key, storeUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresRequestBuilder.java index d7670b1c530..a816f3d7c5c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyStoresGet get() { return new ByProjectKeyStoresGet(apiHttpClient, projectKey); } + public ByProjectKeyStoresHead head() { + return new ByProjectKeyStoresHead(apiHttpClient, projectKey); + } + public ByProjectKeyStoresPost post(com.commercetools.api.models.store.StoreDraft storeDraft) { return new ByProjectKeyStoresPost(apiHttpClient, projectKey, storeDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java new file mode 100644 index 00000000000..83dd423bc5d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Subscription exists for a given id. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .subscriptions()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeySubscriptionsByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeySubscriptionsByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeySubscriptionsByIDHead(ByProjectKeySubscriptionsByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/subscriptions/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeySubscriptionsByIDHead that = (ByProjectKeySubscriptionsByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeySubscriptionsByIDHead copy() { + return new ByProjectKeySubscriptionsByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java index c897f42d4be..3cc9ac50dc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeySubscriptionsByIDGet get() { return new ByProjectKeySubscriptionsByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeySubscriptionsByIDHead head() { + return new ByProjectKeySubscriptionsByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeySubscriptionsByIDPost post( com.commercetools.api.models.subscription.SubscriptionUpdate subscriptionUpdate) { return new ByProjectKeySubscriptionsByIDPost(apiHttpClient, projectKey, ID, subscriptionUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java new file mode 100644 index 00000000000..94daf6094dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Subscription exists for a given Query Predicate. Returns a 200 OK status if any Subscriptions match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .subscriptions()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeySubscriptionsHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeySubscriptionsHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeySubscriptionsHead(ByProjectKeySubscriptionsHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/subscriptions", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeySubscriptionsHead + */ + public ByProjectKeySubscriptionsHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeySubscriptionsHead that = (ByProjectKeySubscriptionsHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeySubscriptionsHead copy() { + return new ByProjectKeySubscriptionsHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java new file mode 100644 index 00000000000..b91c5fe8805 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Subscription exists for a given key. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .subscriptions()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeySubscriptionsKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeySubscriptionsKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeySubscriptionsKeyByKeyHead(ByProjectKeySubscriptionsKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/subscriptions/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeySubscriptionsKeyByKeyHead that = (ByProjectKeySubscriptionsKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeySubscriptionsKeyByKeyHead copy() { + return new ByProjectKeySubscriptionsKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyRequestBuilder.java index 58ce827a473..305d53f1a90 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeySubscriptionsKeyByKeyGet get() { return new ByProjectKeySubscriptionsKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeySubscriptionsKeyByKeyHead head() { + return new ByProjectKeySubscriptionsKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeySubscriptionsKeyByKeyPost post( com.commercetools.api.models.subscription.SubscriptionUpdate subscriptionUpdate) { return new ByProjectKeySubscriptionsKeyByKeyPost(apiHttpClient, projectKey, key, subscriptionUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsRequestBuilder.java index f8119460a01..f1c6dc17ac5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeySubscriptionsGet get() { return new ByProjectKeySubscriptionsGet(apiHttpClient, projectKey); } + public ByProjectKeySubscriptionsHead head() { + return new ByProjectKeySubscriptionsHead(apiHttpClient, projectKey); + } + public ByProjectKeySubscriptionsPost post( com.commercetools.api.models.subscription.SubscriptionDraft subscriptionDraft) { return new ByProjectKeySubscriptionsPost(apiHttpClient, projectKey, subscriptionDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java new file mode 100644 index 00000000000..2d8122e5685 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a TaxCategory exists for a given id. Returns a 200 OK status if the TaxCategory exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .taxCategories()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTaxCategoriesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyTaxCategoriesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyTaxCategoriesByIDHead(ByProjectKeyTaxCategoriesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/tax-categories/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTaxCategoriesByIDHead that = (ByProjectKeyTaxCategoriesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyTaxCategoriesByIDHead copy() { + return new ByProjectKeyTaxCategoriesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDRequestBuilder.java index 0ce795a3a8e..32513b74bd7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyTaxCategoriesByIDGet get() { return new ByProjectKeyTaxCategoriesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyTaxCategoriesByIDHead head() { + return new ByProjectKeyTaxCategoriesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyTaxCategoriesByIDPost post( com.commercetools.api.models.tax_category.TaxCategoryUpdate taxCategoryUpdate) { return new ByProjectKeyTaxCategoriesByIDPost(apiHttpClient, projectKey, ID, taxCategoryUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java new file mode 100644 index 00000000000..96b7c960fc9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java @@ -0,0 +1,195 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a TaxCategory exists for a given Query Predicate. Returns a 200 OK status if any TaxCategories match the Query Predicate, or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .taxCategories()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTaxCategoriesHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyTaxCategoriesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyTaxCategoriesHead(ByProjectKeyTaxCategoriesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/tax-categories", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyTaxCategoriesHead + */ + public ByProjectKeyTaxCategoriesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTaxCategoriesHead that = (ByProjectKeyTaxCategoriesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyTaxCategoriesHead copy() { + return new ByProjectKeyTaxCategoriesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java new file mode 100644 index 00000000000..2fcc78f2a0b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a TaxCategory exists for a given key. Returns a 200 OK status if the Tax Category exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .taxCategories()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTaxCategoriesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyTaxCategoriesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyTaxCategoriesKeyByKeyHead(ByProjectKeyTaxCategoriesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/tax-categories/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTaxCategoriesKeyByKeyHead that = (ByProjectKeyTaxCategoriesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyTaxCategoriesKeyByKeyHead copy() { + return new ByProjectKeyTaxCategoriesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyRequestBuilder.java index c9cfe1830e8..347a9a17d08 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyTaxCategoriesKeyByKeyGet get() { return new ByProjectKeyTaxCategoriesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyTaxCategoriesKeyByKeyHead head() { + return new ByProjectKeyTaxCategoriesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyTaxCategoriesKeyByKeyPost post( com.commercetools.api.models.tax_category.TaxCategoryUpdate taxCategoryUpdate) { return new ByProjectKeyTaxCategoriesKeyByKeyPost(apiHttpClient, projectKey, key, taxCategoryUpdate); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesRequestBuilder.java index 75b19e5ac6f..e6dd68c7597 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyTaxCategoriesGet get() { return new ByProjectKeyTaxCategoriesGet(apiHttpClient, projectKey); } + public ByProjectKeyTaxCategoriesHead head() { + return new ByProjectKeyTaxCategoriesHead(apiHttpClient, projectKey); + } + public ByProjectKeyTaxCategoriesPost post( com.commercetools.api.models.tax_category.TaxCategoryDraft taxCategoryDraft) { return new ByProjectKeyTaxCategoriesPost(apiHttpClient, projectKey, taxCategoryDraft); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java new file mode 100644 index 00000000000..a4c29fd3f1c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Type exists for a given id. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .types()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTypesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyTypesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyTypesByIDHead(ByProjectKeyTypesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/types/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTypesByIDHead that = (ByProjectKeyTypesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyTypesByIDHead copy() { + return new ByProjectKeyTypesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDRequestBuilder.java index a1aae1bbd16..30197f925fe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyTypesByIDGet get() { return new ByProjectKeyTypesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyTypesByIDHead head() { + return new ByProjectKeyTypesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyTypesByIDPost post(com.commercetools.api.models.type.TypeUpdate typeUpdate) { return new ByProjectKeyTypesByIDPost(apiHttpClient, projectKey, ID, typeUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java new file mode 100644 index 00000000000..2f0faa4d159 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java @@ -0,0 +1,194 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Type exists for a given Query Predicate. Returns a 200 OK status if any Types match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .types()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTypesHead extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyTypesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyTypesHead(ByProjectKeyTypesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/types", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyTypesHead + */ + public ByProjectKeyTypesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTypesHead that = (ByProjectKeyTypesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyTypesHead copy() { + return new ByProjectKeyTypesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java new file mode 100644 index 00000000000..40655564ec9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Type exists for a given key. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .types()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyTypesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyTypesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyTypesKeyByKeyHead(ByProjectKeyTypesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/types/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyTypesKeyByKeyHead that = (ByProjectKeyTypesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyTypesKeyByKeyHead copy() { + return new ByProjectKeyTypesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyRequestBuilder.java index 4b15c14e8d5..7b91af0adaa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyTypesKeyByKeyGet get() { return new ByProjectKeyTypesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyTypesKeyByKeyHead head() { + return new ByProjectKeyTypesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyTypesKeyByKeyPost post(com.commercetools.api.models.type.TypeUpdate typeUpdate) { return new ByProjectKeyTypesKeyByKeyPost(apiHttpClient, projectKey, key, typeUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesRequestBuilder.java index 40772c09ac5..0f8147e1565 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyTypesGet get() { return new ByProjectKeyTypesGet(apiHttpClient, projectKey); } + public ByProjectKeyTypesHead head() { + return new ByProjectKeyTypesHead(apiHttpClient, projectKey); + } + public ByProjectKeyTypesPost post(com.commercetools.api.models.type.TypeDraft typeDraft) { return new ByProjectKeyTypesPost(apiHttpClient, projectKey, typeDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java new file mode 100644 index 00000000000..31957954179 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Zone exists for a given id. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .zones()
+ *            .withId("{ID}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyZonesByIDHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String ID; + + public ByProjectKeyZonesByIDHead(final ApiHttpClient apiHttpClient, String projectKey, String ID) { + super(apiHttpClient); + this.projectKey = projectKey; + this.ID = ID; + } + + public ByProjectKeyZonesByIDHead(ByProjectKeyZonesByIDHead t) { + super(t); + this.projectKey = t.projectKey; + this.ID = t.ID; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/zones/%s", this.projectKey, this.ID); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getID() { + return this.ID; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setID(final String ID) { + this.ID = ID; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyZonesByIDHead that = (ByProjectKeyZonesByIDHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode(); + } + + @Override + protected ByProjectKeyZonesByIDHead copy() { + return new ByProjectKeyZonesByIDHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDRequestBuilder.java index 8ee767c689b..7463a0714e6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyZonesByIDGet get() { return new ByProjectKeyZonesByIDGet(apiHttpClient, projectKey, ID); } + public ByProjectKeyZonesByIDHead head() { + return new ByProjectKeyZonesByIDHead(apiHttpClient, projectKey, ID); + } + public ByProjectKeyZonesByIDPost post(com.commercetools.api.models.zone.ZoneUpdate zoneUpdate) { return new ByProjectKeyZonesByIDPost(apiHttpClient, projectKey, ID, zoneUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java new file mode 100644 index 00000000000..68477070a9a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java @@ -0,0 +1,194 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.stream.Collectors; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Zone exists for a given Query Predicate. Returns a 200 OK status if any Zones match the Query Predicate or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .zones()
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyZonesHead extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + + public ByProjectKeyZonesHead(final ApiHttpClient apiHttpClient, String projectKey) { + super(apiHttpClient); + this.projectKey = projectKey; + } + + public ByProjectKeyZonesHead(ByProjectKeyZonesHead t) { + super(t); + this.projectKey = t.projectKey; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/zones", this.projectKey); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public List getWhere() { + return this.getQueryParam("where"); + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead withWhere(final Collection where) { + return copy().withoutQueryParam("where") + .addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + /** + * add additional where query parameters + * @param where values to be added + * @param value type + * @return ByProjectKeyZonesHead + */ + public ByProjectKeyZonesHead addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyZonesHead that = (ByProjectKeyZonesHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).toHashCode(); + } + + @Override + protected ByProjectKeyZonesHead copy() { + return new ByProjectKeyZonesHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java new file mode 100644 index 00000000000..243e1776a8d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java @@ -0,0 +1,120 @@ + +package com.commercetools.api.client; + +import java.net.URI; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.CompletableFuture; + +import com.fasterxml.jackson.core.type.TypeReference; + +import io.vrap.rmf.base.client.*; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; + +/** + *

Checks if a Zone exists for a given key. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

+ * + *
+ *
+ *
{@code
+ *   CompletableFuture> result = apiRoot
+ *            .withProjectKey("{projectKey}")
+ *            .zones()
+ *            .withKey("{key}")
+ *            .head()
+ *            .execute()
+ * }
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ByProjectKeyZonesKeyByKeyHead + extends TypeApiMethod + implements com.commercetools.api.client.ErrorableTrait, + com.commercetools.api.client.Deprecatable200Trait { + + @Override + public TypeReference resultType() { + return new TypeReference() { + }; + } + + private String projectKey; + private String key; + + public ByProjectKeyZonesKeyByKeyHead(final ApiHttpClient apiHttpClient, String projectKey, String key) { + super(apiHttpClient); + this.projectKey = projectKey; + this.key = key; + } + + public ByProjectKeyZonesKeyByKeyHead(ByProjectKeyZonesKeyByKeyHead t) { + super(t); + this.projectKey = t.projectKey; + this.key = t.key; + } + + @Override + protected ApiHttpRequest buildHttpRequest() { + List params = new ArrayList<>(getQueryParamUriStrings()); + String httpRequestPath = String.format("%s/zones/key=%s", this.projectKey, this.key); + if (!params.isEmpty()) { + httpRequestPath += "?" + String.join("&", params); + } + return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null); + } + + @Override + public ApiHttpResponse executeBlocking(final ApiHttpClient client, + final Duration timeout) { + return executeBlocking(client, timeout, com.fasterxml.jackson.databind.JsonNode.class); + } + + @Override + public CompletableFuture> execute( + final ApiHttpClient client) { + return execute(client, com.fasterxml.jackson.databind.JsonNode.class); + } + + public String getProjectKey() { + return this.projectKey; + } + + public String getKey() { + return this.key; + } + + public void setProjectKey(final String projectKey) { + this.projectKey = projectKey; + } + + public void setKey(final String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ByProjectKeyZonesKeyByKeyHead that = (ByProjectKeyZonesKeyByKeyHead) o; + + return new EqualsBuilder().append(projectKey, that.projectKey).append(key, that.key).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(projectKey).append(key).toHashCode(); + } + + @Override + protected ByProjectKeyZonesKeyByKeyHead copy() { + return new ByProjectKeyZonesKeyByKeyHead(this); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyRequestBuilder.java index 4b7fa44b7d2..cec964bfdfe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyRequestBuilder.java @@ -24,6 +24,10 @@ public ByProjectKeyZonesKeyByKeyGet get() { return new ByProjectKeyZonesKeyByKeyGet(apiHttpClient, projectKey, key); } + public ByProjectKeyZonesKeyByKeyHead head() { + return new ByProjectKeyZonesKeyByKeyHead(apiHttpClient, projectKey, key); + } + public ByProjectKeyZonesKeyByKeyPost post(com.commercetools.api.models.zone.ZoneUpdate zoneUpdate) { return new ByProjectKeyZonesKeyByKeyPost(apiHttpClient, projectKey, key, zoneUpdate); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesRequestBuilder.java index 4c47963947c..db15fbc195d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesRequestBuilder.java @@ -21,6 +21,10 @@ public ByProjectKeyZonesGet get() { return new ByProjectKeyZonesGet(apiHttpClient, projectKey); } + public ByProjectKeyZonesHead head() { + return new ByProjectKeyZonesHead(apiHttpClient, projectKey); + } + public ByProjectKeyZonesPost post(com.commercetools.api.models.zone.ZoneDraft zoneDraft) { return new ByProjectKeyZonesPost(apiHttpClient, projectKey, zoneDraft); } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsByIDTest.java index d71b083b0fb..cad88a73bb2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsByIDTest.java @@ -66,6 +66,11 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/api-clients/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .apiClients() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/api-clients/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .apiClients() .withId("test_ID") @@ -77,6 +82,7 @@ public static Object[][] requestWithMethodParameters() { public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").delete(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsTest.java index 8b1b3ecddca..f80f9e186f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsTest.java @@ -94,6 +94,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/api-clients?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().get().createHttpRequest(), "get", "test_projectKey/api-clients", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .apiClients() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/api-clients?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().head().createHttpRequest(), + "head", "test_projectKey/api-clients", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .apiClients() .post(com.commercetools.api.models.api_client.ApiClientDraft.of()) @@ -119,6 +126,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .apiClients() .post(com.commercetools.api.models.api_client.ApiClientDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest.java index 345b3551745..cbbee29d063 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest.java @@ -83,6 +83,15 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/business-units/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/as-associate/test_associateId/business-units/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -120,6 +129,12 @@ public static Object[][] executeMethodParameters() { .businessUnits() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest.java index 56410595565..335b4b8affe 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest.java @@ -84,6 +84,15 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/business-units/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/as-associate/test_associateId/business-units/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -122,6 +131,12 @@ public static Object[][] executeMethodParameters() { .businessUnits() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest.java index a876799d063..af42a248706 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest.java @@ -136,6 +136,23 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/business-units", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/as-associate/test_associateId/business-units?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .head() + .createHttpRequest(), + "head", "test_projectKey/as-associate/test_associateId/business-units", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -205,6 +222,17 @@ public static Object[][] executeMethodParameters() { .withAssociateIdValue("test_associateId") .businessUnits() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .businessUnits() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDTest.java index 580af13c039..3c1adff4b2d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -176,6 +187,13 @@ public static Object[][] executeMethodParameters() { .carts() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyTest.java index 8d78f3c2045..72b6629eccd 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -176,6 +187,13 @@ public static Object[][] executeMethodParameters() { .carts() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsTest.java index 727d3259887..73bb40dffec 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsTest.java @@ -150,6 +150,27 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .head() + .withWhere("where") + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/carts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -231,6 +252,19 @@ public static Object[][] executeMethodParameters() { .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .carts() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .carts() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDTest.java index fdef2844c0c..d28c4f3c2ef 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .orders() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberTest.java index ad119ef499d..c215d612e82 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersOrderNumberByOrderNumberTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders/order-number=test_orderNumber", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .withOrderNumber("test_orderNumber") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders/order-number=test_orderNumber", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .orders() .withOrderNumber("test_orderNumber") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .withOrderNumber("test_orderNumber") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersTest.java index eca7eb9368a..2082b7fe8bf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersTest.java @@ -150,6 +150,27 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .head() + .withWhere("where") + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/orders", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -231,6 +252,19 @@ public static Object[][] executeMethodParameters() { .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .orders() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .orders() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDTest.java index ac74b14f6ad..10aca2b6bbf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .quoteRequests() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyTest.java index f631b876a87..781077b2eec 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .quoteRequests() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsTest.java index 2e0b0126f2e..a7321487aa4 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsTest.java @@ -150,6 +150,27 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .head() + .withWhere("where") + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quote-requests", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -231,6 +252,19 @@ public static Object[][] executeMethodParameters() { .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .quoteRequests() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quoteRequests() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDTest.java index 9ac619686b3..d7490685cef 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .quotes() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyTest.java index 2f99649d286..9b78dcbe54c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyTest.java @@ -86,6 +86,17 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() @@ -129,6 +140,13 @@ public static Object[][] executeMethodParameters() { .quotes() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .asAssociate() .withAssociateIdValue("test_associateId") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesTest.java index 8e5063c7e10..cc5d88a1250 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesTest.java @@ -149,6 +149,27 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .head() + .withWhere("where") + .createHttpRequest(), + "head", + "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .head() + .createHttpRequest(), + "head", "test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/quotes", } }; } @@ -209,6 +230,19 @@ public static Object[][] executeMethodParameters() { .withAssociateIdValue("test_associateId") .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") .quotes() - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .asAssociate() + .withAssociateIdValue("test_associateId") + .inBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey") + .quotes() + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesByIDTest.java index 7bb1c1fbf92..b540097f875 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/associate-roles/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .associateRoles() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/associate-roles/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() @@ -118,6 +123,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesKeyByKeyTest.java index 47ce2d7017d..d409f4f1385 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/associate-roles/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .associateRoles() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/associate-roles/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesTest.java index 1193c3fb351..af4224ea0e6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAssociateRolesTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/associate-roles?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().get().createHttpRequest(), "get", "test_projectKey/associate-roles", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .associateRoles() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/associate-roles?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().head().createHttpRequest(), + "head", "test_projectKey/associate-roles", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() .post(com.commercetools.api.models.associate_role.AssociateRoleDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").associateRoles().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .associateRoles() .post(com.commercetools.api.models.associate_role.AssociateRoleDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java index 546ac87aeea..36a3144af0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsByIDTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/attribute-groups/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/attribute-groups/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() @@ -120,6 +125,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java index 056e694e50d..21f0b1940a6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/attribute-groups/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/attribute-groups/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() @@ -122,6 +127,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").attributeGroups().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java index 81340385544..90a94d96b90 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAttributeGroupsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/attribute-groups?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get().createHttpRequest(), "get", "test_projectKey/attribute-groups", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .attributeGroups() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/attribute-groups?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().head().createHttpRequest(), + "head", "test_projectKey/attribute-groups", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() .post(com.commercetools.api.models.attribute_group.AttributeGroupDraft.of()) @@ -129,6 +136,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").attributeGroups().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .attributeGroups() .post(com.commercetools.api.models.attribute_group.AttributeGroupDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsByIDTest.java index 679398ca39f..4cf9e4be4c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/business-units/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/business-units/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() .withId("test_ID") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsKeyByKeyTest.java index a2f6d7edc72..f9e68bdeb8c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/business-units/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/business-units/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsTest.java index 124e6e61761..219dfc76487 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyBusinessUnitsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/business-units?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().get().createHttpRequest(), "get", "test_projectKey/business-units", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .businessUnits() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/business-units?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().head().createHttpRequest(), + "head", "test_projectKey/business-units", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() .post(com.commercetools.api.models.business_unit.CompanyDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").businessUnits().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .businessUnits() .post(com.commercetools.api.models.business_unit.CompanyDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsByIDTest.java index caf4c8ea247..1088df6770f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/cart-discounts/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .cartDiscounts() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/cart-discounts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() .withId("test_ID") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsKeyByKeyTest.java index 8209d267509..fedf4936ecf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/cart-discounts/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .cartDiscounts() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/cart-discounts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsTest.java index b30a33b3bc6..8cb7a066b10 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartDiscountsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/cart-discounts?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().get().createHttpRequest(), "get", "test_projectKey/cart-discounts", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .cartDiscounts() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/cart-discounts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().head().createHttpRequest(), + "head", "test_projectKey/cart-discounts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() .post(com.commercetools.api.models.cart_discount.CartDiscountDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").cartDiscounts().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .cartDiscounts() .post(com.commercetools.api.models.cart_discount.CartDiscountDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsByIDTest.java index 559dac9774b..20d867919f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/carts/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").carts().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/carts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .withId("test_ID") @@ -114,6 +117,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsCustomerIdByCustomerIdTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsCustomerIdByCustomerIdTest.java index 2fe5add55a7..cac28d82409 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsCustomerIdByCustomerIdTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsCustomerIdByCustomerIdTest.java @@ -76,7 +76,12 @@ public static Object[][] requestWithMethodParameters() { .carts() .withCustomerId("test_customerId") .get() - .createHttpRequest(), "get", "test_projectKey/carts/customer-id=test_customerId", } }; + .createHttpRequest(), "get", "test_projectKey/carts/customer-id=test_customerId", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .carts() + .withCustomerId("test_customerId") + .head() + .createHttpRequest(), "head", "test_projectKey/carts/customer-id=test_customerId", } }; } @DataProvider @@ -88,6 +93,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").carts().withCustomerId("test_customerId").get(), } }; + apiRoot.withProjectKey("test_projectKey").carts().withCustomerId("test_customerId").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").carts().withCustomerId("test_customerId").head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsKeyByKeyTest.java index 6c2e675bfaf..8b46763b366 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsKeyByKeyTest.java @@ -73,6 +73,11 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withKey("test_key").get().createHttpRequest(), "get", "test_projectKey/carts/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .carts() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/carts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .withKey("test_key") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").carts().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsTest.java index 708f1e1002b..34348a5d265 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCartsTest.java @@ -87,6 +87,11 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/carts?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").carts().get().createHttpRequest(), "get", "test_projectKey/carts", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").carts().head().withWhere("where").createHttpRequest(), + "head", "test_projectKey/carts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").carts().head().createHttpRequest(), "head", + "test_projectKey/carts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .post(com.commercetools.api.models.cart.CartDraft.of()) @@ -112,6 +117,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").carts().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").carts().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").carts().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .carts() .post(com.commercetools.api.models.cart.CartDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesByIDTest.java index e6f9aa75a4d..f8fc0c35e54 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/categories/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .categories() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/categories/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() .withId("test_ID") @@ -110,6 +115,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").categories().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").categories().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").categories().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesKeyByKeyTest.java index cbe522457bd..2a3bf0195ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/categories/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .categories() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/categories/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() @@ -118,6 +123,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").categories().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").categories().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesTest.java index 9d651102ba1..3de9c2e7bdf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCategoriesTest.java @@ -94,6 +94,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/categories?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").categories().get().createHttpRequest(), "get", "test_projectKey/categories", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .categories() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/categories?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").categories().head().createHttpRequest(), + "head", "test_projectKey/categories", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() .post(com.commercetools.api.models.category.CategoryDraft.of()) @@ -119,6 +126,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").categories().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").categories().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").categories().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .categories() .post(com.commercetools.api.models.category.CategoryDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsByIDTest.java index 19016905240..f7ccf40fcb6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/channels/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .channels() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/channels/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .channels() .withId("test_ID") @@ -110,6 +115,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").channels().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").channels().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").channels().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .channels() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsTest.java index 6fabf5bcf14..d37a53fde6d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyChannelsTest.java @@ -92,6 +92,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/channels?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").channels().get().createHttpRequest(), "get", "test_projectKey/channels", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .channels() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/channels?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").channels().head().createHttpRequest(), "head", + "test_projectKey/channels", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .channels() .post(com.commercetools.api.models.channel.ChannelDraft.of()) @@ -117,6 +124,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").channels().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").channels().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").channels().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .channels() .post(com.commercetools.api.models.channel.ChannelDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomObjectsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomObjectsTest.java index 4c63cb420f3..d92f1ced79a 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomObjectsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomObjectsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/custom-objects?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").customObjects().get().createHttpRequest(), "get", "test_projectKey/custom-objects", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customObjects() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/custom-objects?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customObjects().head().createHttpRequest(), + "head", "test_projectKey/custom-objects", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customObjects() .post(com.commercetools.api.models.custom_object.CustomObjectDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customObjects().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customObjects().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customObjects().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customObjects() .post(com.commercetools.api.models.custom_object.CustomObjectDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsByIDTest.java index 6e925a77e67..d62fd4cb575 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/customer-groups/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customerGroups() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/customer-groups/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() @@ -118,6 +123,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsKeyByKeyTest.java index ab35322a63d..acc2d13dcaa 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/customer-groups/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customerGroups() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/customer-groups/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsTest.java index 64010ea6f44..9bd3976a4ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomerGroupsTest.java @@ -100,6 +100,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/customer-groups?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().get().createHttpRequest(), "get", "test_projectKey/customer-groups", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customerGroups() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/customer-groups?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().head().createHttpRequest(), + "head", "test_projectKey/customer-groups", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() .post(com.commercetools.api.models.customer_group.CustomerGroupDraft.of()) @@ -125,6 +132,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customerGroups().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customerGroups() .post(com.commercetools.api.models.customer_group.CustomerGroupDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersByIDTest.java index 24be41e71a4..9ebf3b7831e 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/customers/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customers() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/customers/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .withId("test_ID") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersKeyByKeyTest.java index bbdc734319c..96b81c42958 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/customers/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customers() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/customers/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .withKey("test_key") @@ -120,6 +125,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customers().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersTest.java index 46696dc841d..4c0f5e6a026 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyCustomersTest.java @@ -94,6 +94,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/customers?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").customers().get().createHttpRequest(), "get", "test_projectKey/customers", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .customers() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/customers?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customers().head().createHttpRequest(), "head", + "test_projectKey/customers", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .post(com.commercetools.api.models.customer.CustomerDraft.of()) @@ -119,6 +126,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").customers().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customers().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").customers().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .customers() .post(com.commercetools.api.models.customer.CustomerDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesByIDTest.java index 69caf744188..6e787fb9afb 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/discount-codes/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .discountCodes() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/discount-codes/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .discountCodes() .withId("test_ID") @@ -124,6 +129,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .discountCodes() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesTest.java index 7cc62eeffd7..4ed3e85be36 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyDiscountCodesTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/discount-codes?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().get().createHttpRequest(), "get", "test_projectKey/discount-codes", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .discountCodes() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/discount-codes?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().head().createHttpRequest(), + "head", "test_projectKey/discount-codes", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .discountCodes() .post(com.commercetools.api.models.discount_code.DiscountCodeDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").discountCodes().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .discountCodes() .post(com.commercetools.api.models.discount_code.DiscountCodeDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsByIDTest.java index 7c583b6a554..dff102f0b43 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsByIDTest.java @@ -66,6 +66,11 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/extensions/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .extensions() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/extensions/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .withId("test_ID") @@ -88,6 +93,7 @@ public static Object[][] requestWithMethodParameters() { public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsKeyByKeyTest.java index 34d4a34dc4e..2afe094f5f9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsKeyByKeyTest.java @@ -66,6 +66,11 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withKey("test_key").get().createHttpRequest(), "get", "test_projectKey/extensions/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .extensions() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/extensions/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .withKey("test_key") @@ -88,6 +93,7 @@ public static Object[][] requestWithMethodParameters() { public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsTest.java index 96500f321cc..75c00d2f637 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyExtensionsTest.java @@ -89,6 +89,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/extensions?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().get().createHttpRequest(), "get", "test_projectKey/extensions", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .extensions() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/extensions?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().head().createHttpRequest(), + "head", "test_projectKey/extensions", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .post(com.commercetools.api.models.extension.ExtensionDraft.of()) @@ -108,6 +115,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").extensions().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .extensions() .post(com.commercetools.api.models.extension.ExtensionDraft.of()), } }; diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDTest.java index 239a259f762..3764b35f5a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/cart-discounts/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/cart-discounts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -140,6 +148,11 @@ public static Object[][] executeMethodParameters() { .cartDiscounts() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .cartDiscounts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyTest.java index 4361736b016..03057a4f6e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyTest.java @@ -82,6 +82,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/cart-discounts/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/cart-discounts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -143,6 +151,11 @@ public static Object[][] executeMethodParameters() { .cartDiscounts() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .cartDiscounts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsTest.java index 9612c0a3c09..47b1e84b5f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsTest.java @@ -71,6 +71,21 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/cart-discounts", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/cart-discounts?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/cart-discounts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -87,6 +102,15 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .cartDiscounts() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .cartDiscounts() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .cartDiscounts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsByIDTest.java index 4da40bedafd..86a5733fb0c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsByIDTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/carts/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/carts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -149,6 +157,11 @@ public static Object[][] executeMethodParameters() { .carts() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdTest.java index 8faccd2a2e8..b3fbc79e015 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdTest.java @@ -81,7 +81,15 @@ public static Object[][] requestWithMethodParameters() { .withCustomerId("test_customerId") .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/carts/customer-id=test_customerId", } }; + "get", "test_projectKey/in-store/key=test_storeKey/carts/customer-id=test_customerId", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withCustomerId("test_customerId") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/carts/customer-id=test_customerId", } }; } @DataProvider @@ -97,6 +105,11 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .carts() .withCustomerId("test_customerId") - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withCustomerId("test_customerId") + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyTest.java index 954d43faa89..b855675141c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/carts/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/carts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -149,6 +157,11 @@ public static Object[][] executeMethodParameters() { .carts() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsTest.java index ca4d5c7103e..4639250c305 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCartsTest.java @@ -125,6 +125,19 @@ public static Object[][] requestWithMethodParameters() { .carts() .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/carts", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/carts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .head() + .createHttpRequest(), "head", "test_projectKey/in-store/key=test_storeKey/carts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -182,6 +195,15 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .carts() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .carts() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDTest.java index 9aa72a87432..629999d4069 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/customers/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/customers/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -149,6 +157,11 @@ public static Object[][] executeMethodParameters() { .customers() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .customers() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyTest.java index b96434a4e20..1bb8019dbd7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/customers/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/customers/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -150,6 +158,11 @@ public static Object[][] executeMethodParameters() { .customers() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .customers() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersTest.java index f4c28be4f52..1297f5069c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyCustomersTest.java @@ -125,6 +125,19 @@ public static Object[][] requestWithMethodParameters() { .customers() .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/customers", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/customers?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .head() + .createHttpRequest(), "head", "test_projectKey/in-store/key=test_storeKey/customers", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -184,6 +197,15 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .customers() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .customers() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .customers() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartTest.java index 66f38ebe710..bd272116858 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeActiveCartTest.java @@ -80,7 +80,15 @@ public static Object[][] requestWithMethodParameters() { .activeCart() .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/me/active-cart", } }; + "get", "test_projectKey/in-store/key=test_storeKey/me/active-cart", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .activeCart() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/active-cart", } }; } @DataProvider @@ -96,6 +104,11 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .me() .activeCart() - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .activeCart() + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDTest.java index 2b3473c18e7..e21a294cff3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDTest.java @@ -83,6 +83,15 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/carts/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/carts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -149,6 +158,12 @@ public static Object[][] executeMethodParameters() { .carts() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsTest.java index 5388f395c91..95b833963a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeCartsTest.java @@ -133,6 +133,21 @@ public static Object[][] requestWithMethodParameters() { .carts() .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/carts", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/carts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .head() + .createHttpRequest(), "head", "test_projectKey/in-store/key=test_storeKey/me/carts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -202,6 +217,17 @@ public static Object[][] executeMethodParameters() { .me() .carts() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .carts() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDTest.java index 7deccbd706f..ab89db4dad6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDTest.java @@ -82,7 +82,16 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/me/orders/test_ID", } }; + "get", "test_projectKey/in-store/key=test_storeKey/me/orders/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/orders/test_ID", } }; } @DataProvider @@ -100,6 +109,12 @@ public static Object[][] executeMethodParameters() { .me() .orders() .withId("test_ID") - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .withId("test_ID") + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersTest.java index cdfebba0099..cd0278da509 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeOrdersTest.java @@ -133,6 +133,21 @@ public static Object[][] requestWithMethodParameters() { .orders() .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/orders", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/orders?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .head() + .createHttpRequest(), "head", "test_projectKey/in-store/key=test_storeKey/me/orders", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -202,6 +217,17 @@ public static Object[][] executeMethodParameters() { .me() .orders() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .orders() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDTest.java index 51f78ffd076..3c4e444002e 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDTest.java @@ -83,6 +83,15 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -161,6 +170,12 @@ public static Object[][] executeMethodParameters() { .shoppingLists() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyTest.java index 2369dfacc43..26ced12fece 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyTest.java @@ -84,6 +84,15 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -164,6 +173,12 @@ public static Object[][] executeMethodParameters() { .shoppingLists() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsTest.java index 413f5736810..9e27de8b53d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsTest.java @@ -136,6 +136,23 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/me/shopping-lists", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -205,6 +222,17 @@ public static Object[][] executeMethodParameters() { .me() .shoppingLists() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .me() + .shoppingLists() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .me() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDTest.java index 5f50568d140..1e896d0eee2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/orders/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/orders/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -149,6 +157,11 @@ public static Object[][] executeMethodParameters() { .orders() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .orders() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberTest.java index 96f332325fb..33a86875f19 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/orders/order-number=test_orderNumber", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .withOrderNumber("test_orderNumber") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/orders/order-number=test_orderNumber", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -154,6 +162,11 @@ public static Object[][] executeMethodParameters() { .orders() .withOrderNumber("test_orderNumber") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .withOrderNumber("test_orderNumber") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .orders() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersTest.java index 13a8724c394..a34caa1e2ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyOrdersTest.java @@ -125,6 +125,19 @@ public static Object[][] requestWithMethodParameters() { .orders() .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/orders", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/orders?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .head() + .createHttpRequest(), "head", "test_projectKey/in-store/key=test_storeKey/orders", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -182,6 +195,15 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .orders() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .orders() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .orders() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java index b8249264567..6d98b75afb5 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java @@ -140,7 +140,15 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/product-projections/test_ID", } }; + "get", "test_projectKey/in-store/key=test_storeKey/product-projections/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/product-projections/test_ID", } }; } @DataProvider @@ -192,6 +200,11 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .productProjections() .withId("test_ID") - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withId("test_ID") + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java index 9c67560d669..ed13a4bee8f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java @@ -141,7 +141,15 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key", } }; + "get", "test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key", } }; } @DataProvider @@ -193,6 +201,11 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .productProjections() .withKey("test_key") - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .productProjections() + .withKey("test_key") + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartTest.java index b1e44932bbf..0870fa3fb01 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartTest.java @@ -91,7 +91,25 @@ public static Object[][] requestWithMethodParameters() { .matchingCart() .get() .createHttpRequest(), - "get", "test_projectKey/in-store/key=test_storeKey/shipping-methods/matching-cart", } }; + "get", "test_projectKey/in-store/key=test_storeKey/shipping-methods/matching-cart", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shippingMethods() + .matchingCart() + .head() + .withCartId("cartId") + .createHttpRequest(), + "head", + "test_projectKey/in-store/key=test_storeKey/shipping-methods/matching-cart?cartId=cartId", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shippingMethods() + .matchingCart() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/shipping-methods/matching-cart", } }; } @DataProvider @@ -113,6 +131,17 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .shippingMethods() .matchingCart() - .get(), } }; + .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shippingMethods() + .matchingCart() + .head() + .withCartId("cartId"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shippingMethods() + .matchingCart() + .head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDTest.java index d2acfa116e6..dcd147064bf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDTest.java @@ -81,6 +81,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .withId("test_ID") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/shopping-lists/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -150,6 +158,11 @@ public static Object[][] executeMethodParameters() { .shoppingLists() .withId("test_ID") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .withId("test_ID") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyTest.java index 6d1af80c7f9..0f9689645c0 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyTest.java @@ -82,6 +82,14 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .withKey("test_key") + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/shopping-lists/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -153,6 +161,11 @@ public static Object[][] executeMethodParameters() { .shoppingLists() .withKey("test_key") .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .withKey("test_key") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsTest.java index c8985b720b3..3508f470f85 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyShoppingListsTest.java @@ -127,6 +127,21 @@ public static Object[][] requestWithMethodParameters() { .get() .createHttpRequest(), "get", "test_projectKey/in-store/key=test_storeKey/shopping-lists", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .head() + .withWhere("where") + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/shopping-lists?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .head() + .createHttpRequest(), + "head", "test_projectKey/in-store/key=test_storeKey/shopping-lists", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") @@ -186,6 +201,15 @@ public static Object[][] executeMethodParameters() { .inStoreKeyWithStoreKeyValue("test_storeKey") .shoppingLists() .get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .head() + .withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inStoreKeyWithStoreKeyValue("test_storeKey") + .shoppingLists() + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inStoreKeyWithStoreKeyValue("test_storeKey") .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryByIDTest.java index b8ef36316d2..de7070b05a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/inventory/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inventory() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/inventory/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .withId("test_ID") @@ -110,6 +115,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryKeyByKeyTest.java index e3a36c8cadf..1b5a1a48429 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/inventory/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inventory() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/inventory/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .withKey("test_key") @@ -112,6 +117,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryTest.java index be515c65f81..63314df06ad 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInventoryTest.java @@ -94,6 +94,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/inventory?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().get().createHttpRequest(), "get", "test_projectKey/inventory", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .inventory() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/inventory?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().head().createHttpRequest(), "head", + "test_projectKey/inventory", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .post(com.commercetools.api.models.inventory.InventoryEntryDraft.of()) @@ -119,6 +126,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").inventory().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .inventory() .post(com.commercetools.api.models.inventory.InventoryEntryDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeActiveCartTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeActiveCartTest.java index 7b0efc985d0..12ae6434ec3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeActiveCartTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeActiveCartTest.java @@ -71,7 +71,9 @@ public static Object[][] requestWithMethodParameters() { .withExpand("expand") .createHttpRequest(), "get", "test_projectKey/me/active-cart?expand=expand", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().get().createHttpRequest(), - "get", "test_projectKey/me/active-cart", } }; + "get", "test_projectKey/me/active-cart", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().head().createHttpRequest(), + "head", "test_projectKey/me/active-cart", } }; } @DataProvider @@ -79,6 +81,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().get().withExpand("expand"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().activeCart().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java index 1b33c049eeb..8bf4772b98d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsByIDTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/business-units/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .businessUnits() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/business-units/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().businessUnits().withId("test_ID").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().businessUnits().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .businessUnits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java index fd558c0c60d..0767860ced8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsKeyByKeyTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/me/business-units/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .businessUnits() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/me/business-units/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().businessUnits().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().businessUnits().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .businessUnits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsTest.java index 3abc05c7399..040a11cfb39 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeBusinessUnitsTest.java @@ -110,6 +110,15 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/me/business-units?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().businessUnits().get().createHttpRequest(), "get", "test_projectKey/me/business-units", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .businessUnits() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/business-units?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().businessUnits().head().createHttpRequest(), + "head", "test_projectKey/me/business-units", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .businessUnits() @@ -141,6 +150,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().businessUnits().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().businessUnits().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().businessUnits().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .businessUnits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsByIDTest.java index 9982bfc5dae..d37294edd8d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsByIDTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/carts/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .carts() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/carts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() @@ -117,6 +123,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsKeyByKeyTest.java index ccf4ac3c704..887419df8b2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsKeyByKeyTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/me/carts/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .carts() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/me/carts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() @@ -124,6 +130,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsTest.java index 9ec6c45c27f..693b45e338d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeCartsTest.java @@ -98,6 +98,14 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/me/carts?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().get().createHttpRequest(), "get", "test_projectKey/me/carts", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .carts() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/carts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().head().createHttpRequest(), + "head", "test_projectKey/me/carts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() @@ -126,6 +134,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().carts().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .carts() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersByIDTest.java index a2f0b5a59a2..2460691d788 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersByIDTest.java @@ -76,13 +76,20 @@ public static Object[][] requestWithMethodParameters() { .orders() .withId("test_ID") .get() - .createHttpRequest(), "get", "test_projectKey/me/orders/test_ID", } }; + .createHttpRequest(), "get", "test_projectKey/me/orders/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .orders() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/orders/test_ID", } }; } @DataProvider public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().withId("test_ID").get().withExpand("expand"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().withId("test_ID").get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().withId("test_ID").head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersTest.java index f1f000e4731..720aa62f169 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeOrdersTest.java @@ -98,6 +98,14 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/me/orders?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().get().createHttpRequest(), "get", "test_projectKey/me/orders", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .orders() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/orders?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().head().createHttpRequest(), + "head", "test_projectKey/me/orders", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .orders() @@ -126,6 +134,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().orders().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .orders() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsByIDTest.java index 4dcc895b292..196e9c5c551 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsByIDTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/payments/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .payments() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/payments/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .payments() @@ -122,6 +128,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .payments() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsTest.java index 4ac7a9f3b09..2a2e5d25fe8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMePaymentsTest.java @@ -108,6 +108,14 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/me/payments?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().get().createHttpRequest(), "get", "test_projectKey/me/payments", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .payments() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/payments?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().head().createHttpRequest(), + "head", "test_projectKey/me/payments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .payments() @@ -136,6 +144,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().payments().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .payments() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsByIDTest.java index 984455e23cc..0f99acd97c2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsByIDTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/quote-requests/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quoteRequests() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/quote-requests/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quoteRequests().withId("test_ID").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().quoteRequests().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quoteRequests() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsKeyByKeyTest.java index e6a52554b0d..0163e9f5fed 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsKeyByKeyTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/me/quote-requests/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quoteRequests() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/me/quote-requests/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quoteRequests().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().quoteRequests().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quoteRequests() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsTest.java index 347afaf6da4..0e365dc919c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuoteRequestsTest.java @@ -110,6 +110,15 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/me/quote-requests?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quoteRequests().get().createHttpRequest(), "get", "test_projectKey/me/quote-requests", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quoteRequests() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/quote-requests?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().quoteRequests().head().createHttpRequest(), + "head", "test_projectKey/me/quote-requests", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quoteRequests() @@ -141,6 +150,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quoteRequests().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().quoteRequests().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quoteRequests().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quoteRequests() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesByIDTest.java index 852bedbd495..8216e0a568e 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesByIDTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/quotes/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quotes() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/quotes/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quotes() @@ -97,6 +103,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quotes() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesKeyByKeyTest.java index f2d55ef3e20..dd8030a7d16 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesKeyByKeyTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/me/quotes/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quotes() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/me/quotes/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quotes() @@ -102,6 +108,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .quotes() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesTest.java index b6e08b63fd7..e367e763b62 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeQuotesTest.java @@ -97,7 +97,15 @@ public static Object[][] requestWithMethodParameters() { .withPredicateVar("varName", "var.varName") .createHttpRequest(), "get", "test_projectKey/me/quotes?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().get().createHttpRequest(), "get", - "test_projectKey/me/quotes", } }; + "test_projectKey/me/quotes", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .quotes() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/quotes?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().head().createHttpRequest(), + "head", "test_projectKey/me/quotes", } }; } @DataProvider @@ -114,6 +122,8 @@ public static Object[][] executeMethodParameters() { .quotes() .get() .withPredicateVar("varName", "var.varName"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().quotes().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsByIDTest.java index 3cf730029e5..9f030317b26 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsByIDTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/me/shopping-lists/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .shoppingLists() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/me/shopping-lists/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().shoppingLists().withId("test_ID").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().shoppingLists().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsKeyByKeyTest.java index 9f5a265f895..0ea40074ec4 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsKeyByKeyTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/me/shopping-lists/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .shoppingLists() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/me/shopping-lists/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() @@ -131,6 +137,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().shoppingLists().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().shoppingLists().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsTest.java index a28a5f11f1e..3da30cd7fb0 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMeShoppingListsTest.java @@ -110,6 +110,15 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/me/shopping-lists?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().shoppingLists().get().createHttpRequest(), "get", "test_projectKey/me/shopping-lists", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .me() + .shoppingLists() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/me/shopping-lists?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().shoppingLists().head().createHttpRequest(), + "head", "test_projectKey/me/shopping-lists", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .shoppingLists() @@ -141,6 +150,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").me().shoppingLists().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").me().shoppingLists().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").me().shoppingLists().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .me() .shoppingLists() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesByIDTest.java index 292ecf69fa7..a480605b0f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesByIDTest.java @@ -74,13 +74,19 @@ public static Object[][] requestWithMethodParameters() { .messages() .withId("test_ID") .get() - .createHttpRequest(), "get", "test_projectKey/messages/test_ID", } }; + .createHttpRequest(), "get", "test_projectKey/messages/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .messages() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/messages/test_ID", } }; } @DataProvider public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").messages().withId("test_ID").get().withExpand("expand"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").messages().withId("test_ID").get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().withId("test_ID").head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesTest.java index 4298e25ae7f..96b4d84155b 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyMessagesTest.java @@ -91,6 +91,13 @@ public static Object[][] requestWithMethodParameters() { .withPredicateVar("varName", "var.varName") .createHttpRequest(), "get", "test_projectKey/messages?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").messages().get().createHttpRequest(), "get", + "test_projectKey/messages", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .messages() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/messages?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().head().createHttpRequest(), "head", "test_projectKey/messages", } }; } @@ -107,6 +114,8 @@ public static Object[][] executeMethodParameters() { .messages() .get() .withPredicateVar("varName", "var.varName"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").messages().get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").messages().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersByIDTest.java index a366dd698d0..64eb6dc0082 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").orders().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/orders/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").orders().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/orders/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .withId("test_ID") @@ -114,6 +117,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").orders().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsByIDTest.java index ad6dc974491..3b8b31131d2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsByIDTest.java @@ -77,6 +77,12 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/orders/edits/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .edits() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/orders/edits/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .edits() @@ -122,6 +128,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .edits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsKeyByKeyTest.java index 103659fe00f..66812253f5f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsKeyByKeyTest.java @@ -79,6 +79,12 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/orders/edits/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .edits() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/orders/edits/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() @@ -130,6 +136,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .edits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsTest.java index 8194cdf99a0..30b6b5ecc70 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersEditsTest.java @@ -108,6 +108,14 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/orders/edits?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().get().createHttpRequest(), "get", "test_projectKey/orders/edits", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .edits() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/orders/edits?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().head().createHttpRequest(), + "head", "test_projectKey/orders/edits", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .edits() @@ -136,6 +144,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().edits().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .edits() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersOrderNumberByOrderNumberTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersOrderNumberByOrderNumberTest.java index 00c085590fe..ada7d96a9d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersOrderNumberByOrderNumberTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersOrderNumberByOrderNumberTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withOrderNumber("test_orderNumber") .get() .createHttpRequest(), "get", "test_projectKey/orders/order-number=test_orderNumber", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .withOrderNumber("test_orderNumber") + .head() + .createHttpRequest(), "head", "test_projectKey/orders/order-number=test_orderNumber", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() @@ -133,6 +138,10 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().withOrderNumber("test_orderNumber").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .withOrderNumber("test_orderNumber") + .head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .withOrderNumber("test_orderNumber") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersTest.java index 7691a703a52..04f875b105b 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyOrdersTest.java @@ -90,6 +90,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/orders?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().get().createHttpRequest(), "get", "test_projectKey/orders", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .orders() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/orders?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().head().createHttpRequest(), "head", + "test_projectKey/orders", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .post(com.commercetools.api.models.order.OrderFromCartDraft.of()) @@ -115,6 +122,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").orders().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").orders().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .orders() .post(com.commercetools.api.models.order.OrderFromCartDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsByIDTest.java index 17cbe40aa23..64553b6df79 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/payments/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .payments() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/payments/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .withId("test_ID") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsKeyByKeyTest.java index 1f91e9f1c9f..0f427937380 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/payments/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .payments() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/payments/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .withKey("test_key") @@ -120,6 +125,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").payments().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsTest.java index 70e97b142f1..da4f33fcaa2 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyPaymentsTest.java @@ -92,6 +92,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/payments?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").payments().get().createHttpRequest(), "get", "test_projectKey/payments", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .payments() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/payments?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").payments().head().createHttpRequest(), "head", + "test_projectKey/payments", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .post(com.commercetools.api.models.payment.PaymentDraft.of()) @@ -117,6 +124,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").payments().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").payments().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").payments().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .payments() .post(com.commercetools.api.models.payment.PaymentDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsByIDTest.java index 0eb057688e3..d9cf2bff260 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsByIDTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/product-discounts/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productDiscounts() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/product-discounts/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsKeyByKeyTest.java index 09061205079..bb1f27d4e9c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/product-discounts/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productDiscounts() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/product-discounts/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() @@ -123,6 +128,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productDiscounts().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsTest.java index 0567285f90f..4191b2324eb 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductDiscountsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/product-discounts?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().get().createHttpRequest(), "get", "test_projectKey/product-discounts", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productDiscounts() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/product-discounts?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().head().createHttpRequest(), + "head", "test_projectKey/product-discounts", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() .post(com.commercetools.api.models.product_discount.ProductDiscountDraft.of()) @@ -130,6 +137,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productDiscounts().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productDiscounts().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productDiscounts() .post(com.commercetools.api.models.product_discount.ProductDiscountDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java index 1cc81619542..f20732a8dd6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java @@ -132,7 +132,12 @@ public static Object[][] requestWithMethodParameters() { .productProjections() .withId("test_ID") .get() - .createHttpRequest(), "get", "test_projectKey/product-projections/test_ID", } }; + .createHttpRequest(), "get", "test_projectKey/product-projections/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/product-projections/test_ID", } }; } @DataProvider @@ -179,6 +184,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").productProjections().withId("test_ID").get(), } }; + apiRoot.withProjectKey("test_projectKey").productProjections().withId("test_ID").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productProjections().withId("test_ID").head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java index 0b10869586f..af6a018dea5 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java @@ -133,7 +133,12 @@ public static Object[][] requestWithMethodParameters() { .productProjections() .withKey("test_key") .get() - .createHttpRequest(), "get", "test_projectKey/product-projections/key=test_key", } }; + .createHttpRequest(), "get", "test_projectKey/product-projections/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/product-projections/key=test_key", } }; } @DataProvider @@ -180,6 +185,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").productProjections().withKey("test_key").get(), } }; + apiRoot.withProjectKey("test_projectKey").productProjections().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productProjections().withKey("test_key").head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java index 3b1853979c9..faad79ec580 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java @@ -149,7 +149,15 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/product-projections?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").productProjections().get().createHttpRequest(), - "get", "test_projectKey/product-projections", } }; + "get", "test_projectKey/product-projections", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productProjections() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/product-projections?where=where", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productProjections().head().createHttpRequest(), + "head", "test_projectKey/product-projections", } }; } @DataProvider @@ -193,6 +201,9 @@ public static Object[][] executeMethodParameters() { .productProjections() .get() .withPredicateVar("varName", "var.varName"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").productProjections().get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").productProjections().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productProjections().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productProjections().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDTest.java index 505bf7296d8..fe6bb8cc4a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/product-selections/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/product-selections/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() @@ -122,6 +127,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().withId("test_ID").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productSelections().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyTest.java index 0f17c34bea5..2468e001657 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/product-selections/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/product-selections/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() @@ -123,6 +128,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productSelections().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsTest.java index 52a4a58728b..1539ba09285 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/product-selections?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().get().createHttpRequest(), "get", "test_projectKey/product-selections", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productSelections() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/product-selections?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().head().createHttpRequest(), + "head", "test_projectKey/product-selections", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .post(com.commercetools.api.models.product_selection.ProductSelectionDraft.of()) @@ -131,6 +138,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").productSelections().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").productSelections().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .post(com.commercetools.api.models.product_selection.ProductSelectionDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsByIDTest.java index 8fa421ec8c5..9e9c1f3ffc7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/quote-requests/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .quoteRequests() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/quote-requests/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() .withId("test_ID") @@ -124,6 +129,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsKeyByKeyTest.java index bcc8667b271..90eab32f79e 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/quote-requests/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .quoteRequests() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/quote-requests/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() @@ -130,6 +135,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsTest.java index 383af8f1773..533215ab395 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuoteRequestsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/quote-requests?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().get().createHttpRequest(), "get", "test_projectKey/quote-requests", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .quoteRequests() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/quote-requests?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().head().createHttpRequest(), + "head", "test_projectKey/quote-requests", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() .post(com.commercetools.api.models.quote_request.QuoteRequestDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quoteRequests().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quoteRequests() .post(com.commercetools.api.models.quote_request.QuoteRequestDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesByIDTest.java index c648cafcc36..27a6ab0622d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/quotes/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").quotes().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/quotes/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .withId("test_ID") @@ -114,6 +117,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesKeyByKeyTest.java index d74cb5dd349..284c5194993 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/quotes/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .quotes() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/quotes/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .withKey("test_key") @@ -118,6 +123,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesTest.java index 6385df3bf1f..88f54891d9b 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyQuotesTest.java @@ -90,6 +90,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/quotes?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().get().createHttpRequest(), "get", "test_projectKey/quotes", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .quotes() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/quotes?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().head().createHttpRequest(), "head", + "test_projectKey/quotes", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .post(com.commercetools.api.models.quote.QuoteDraft.of()) @@ -115,6 +122,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").quotes().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .quotes() .post(com.commercetools.api.models.quote.QuoteDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsByIDTest.java index c03536863b2..e71285798bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsByIDTest.java @@ -73,6 +73,11 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/reviews/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .reviews() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/reviews/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .withId("test_ID") @@ -114,6 +119,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsKeyByKeyTest.java index 51f00e06532..3afa17dc8ad 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/reviews/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .reviews() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/reviews/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .withKey("test_key") @@ -118,6 +123,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsTest.java index 46b37f50928..8591b1d9994 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyReviewsTest.java @@ -92,6 +92,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/reviews?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().get().createHttpRequest(), "get", "test_projectKey/reviews", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .reviews() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/reviews?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().head().createHttpRequest(), "head", + "test_projectKey/reviews", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .post(com.commercetools.api.models.review.ReviewDraft.of()) @@ -117,6 +124,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").reviews().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .reviews() .post(com.commercetools.api.models.review.ReviewDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsByIDTest.java index e773fac8e7d..f149eda37ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsByIDTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/shipping-methods/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/shipping-methods/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() @@ -120,6 +125,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsKeyByKeyTest.java index c9a56c744f9..798a1c4f78c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/shipping-methods/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/shipping-methods/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() @@ -122,6 +127,8 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").shippingMethods().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartLocationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartLocationTest.java index bdb440afd64..eb3fdcd8437 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartLocationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartLocationTest.java @@ -102,7 +102,38 @@ public static Object[][] requestWithMethodParameters() { .matchingCartLocation() .get() .createHttpRequest(), - "get", "test_projectKey/shipping-methods/matching-cart-location", } }; + "get", "test_projectKey/shipping-methods/matching-cart-location", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withCountry("country") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-cart-location?country=country", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withState("state") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-cart-location?state=state", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withCartId("cartId") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-cart-location?cartId=cartId", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-cart-location", } }; } @DataProvider @@ -129,6 +160,23 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCartLocation().get(), } }; + apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCartLocation().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withCountry("country"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withState("state"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCartLocation() + .head() + .withCartId("cartId"), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCartLocation().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartTest.java index 541a3200a73..84b801fef67 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingCartTest.java @@ -84,7 +84,20 @@ public static Object[][] requestWithMethodParameters() { .shippingMethods() .matchingCart() .get() - .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-cart", } }; + .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-cart", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCart() + .head() + .withCartId("cartId") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-cart?cartId=cartId", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCart() + .head() + .createHttpRequest(), "head", "test_projectKey/shipping-methods/matching-cart", } }; } @DataProvider @@ -100,6 +113,12 @@ public static Object[][] executeMethodParameters() { .matchingCart() .get() .withExpand("expand"), }, - new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCart().get(), } }; + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCart().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingCart() + .head() + .withCartId("cartId"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingCart().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingLocationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingLocationTest.java index ac8633a810d..7bb1cddb920 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingLocationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingLocationTest.java @@ -108,7 +108,36 @@ public static Object[][] requestWithMethodParameters() { .shippingMethods() .matchingLocation() .get() - .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-location", } }; + .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-location", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withCountry("country") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-location?country=country", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withState("state") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-location?state=state", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withCurrency("currency") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-location?currency=currency", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .createHttpRequest(), "head", "test_projectKey/shipping-methods/matching-location", } }; } @DataProvider @@ -139,7 +168,23 @@ public static Object[][] executeMethodParameters() { .matchingLocation() .get() .withSort("sort"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingLocation().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withCountry("country"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withState("state"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingLocation() + .head() + .withCurrency("currency"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingLocation().get(), } }; + apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingLocation().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingOrdereditTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingOrdereditTest.java index cc6799caae3..29c00e2c1d0 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingOrdereditTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsMatchingOrdereditTest.java @@ -92,7 +92,38 @@ public static Object[][] requestWithMethodParameters() { .shippingMethods() .matchingOrderedit() .get() - .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-orderedit", } }; + .createHttpRequest(), "get", "test_projectKey/shipping-methods/matching-orderedit", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withOrderEditId("orderEditId") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-orderedit?orderEditId=orderEditId", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withCountry("country") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-orderedit?country=country", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withState("state") + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-orderedit?state=state", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .createHttpRequest(), + "head", "test_projectKey/shipping-methods/matching-orderedit", } }; } @DataProvider @@ -113,7 +144,23 @@ public static Object[][] executeMethodParameters() { .matchingOrderedit() .get() .withState("state"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingOrderedit().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withOrderEditId("orderEditId"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withCountry("country"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .matchingOrderedit() + .head() + .withState("state"), }, new Object[] { - apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingOrderedit().get(), } }; + apiRoot.withProjectKey("test_projectKey").shippingMethods().matchingOrderedit().head(), } }; } } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsTest.java index dd026bfec8e..2b3e5aec978 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShippingMethodsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/shipping-methods?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().get().createHttpRequest(), "get", "test_projectKey/shipping-methods", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shippingMethods() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/shipping-methods?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().head().createHttpRequest(), + "head", "test_projectKey/shipping-methods", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() .post(com.commercetools.api.models.shipping_method.ShippingMethodDraft.of()) @@ -129,6 +136,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shippingMethods().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shippingMethods() .post(com.commercetools.api.models.shipping_method.ShippingMethodDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsByIDTest.java index 4caf7e1b917..5e52ffaf503 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/shopping-lists/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shoppingLists() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/shopping-lists/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() .withId("test_ID") @@ -124,6 +129,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsKeyByKeyTest.java index 517435296d1..b560c0bfe21 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/shopping-lists/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shoppingLists() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/shopping-lists/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() @@ -130,6 +135,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsTest.java index c19ed496d45..67010abccb4 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyShoppingListsTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/shopping-lists?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().get().createHttpRequest(), "get", "test_projectKey/shopping-lists", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .shoppingLists() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/shopping-lists?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().head().createHttpRequest(), + "head", "test_projectKey/shopping-lists", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() .post(com.commercetools.api.models.shopping_list.ShoppingListDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").shoppingLists().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .shoppingLists() .post(com.commercetools.api.models.shopping_list.ShoppingListDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesByIDTest.java index 45abc8a04d4..caa88dde447 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/staged-quotes/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .stagedQuotes() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/staged-quotes/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() .withId("test_ID") @@ -124,6 +129,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesKeyByKeyTest.java index 7a14aaf86f9..895fde49dae 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/staged-quotes/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .stagedQuotes() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/staged-quotes/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() @@ -130,6 +135,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesTest.java index 3474aa2dde2..425fe22ad25 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStagedQuotesTest.java @@ -96,6 +96,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/staged-quotes?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().get().createHttpRequest(), "get", "test_projectKey/staged-quotes", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .stagedQuotes() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/staged-quotes?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().head().createHttpRequest(), + "head", "test_projectKey/staged-quotes", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() .post(com.commercetools.api.models.staged_quote.StagedQuoteDraft.of()) @@ -121,6 +128,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stagedQuotes().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stagedQuotes() .post(com.commercetools.api.models.staged_quote.StagedQuoteDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesByIDTest.java index 9158ec90a22..3e8220fbf3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesByIDTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/standalone-prices/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .standalonePrices() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/standalone-prices/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesKeyByKeyTest.java index 8975cf7ecf8..3a2b9114410 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/standalone-prices/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .standalonePrices() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/standalone-prices/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() @@ -123,6 +128,8 @@ public static Object[][] executeMethodParameters() { .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().withKey("test_key").get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").standalonePrices().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesTest.java index df6188458eb..b71f0efd2d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStandalonePricesTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/standalone-prices?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().get().createHttpRequest(), "get", "test_projectKey/standalone-prices", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .standalonePrices() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/standalone-prices?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().head().createHttpRequest(), + "head", "test_projectKey/standalone-prices", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() .post(com.commercetools.api.models.standalone_price.StandalonePriceDraft.of()) @@ -130,6 +137,9 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().get(), }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").standalonePrices().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").standalonePrices().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .standalonePrices() .post(com.commercetools.api.models.standalone_price.StandalonePriceDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesByIDTest.java index c3ddc741ef0..64792d9a426 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").states().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/states/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").states().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/states/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .withId("test_ID") @@ -108,6 +111,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").states().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").states().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").states().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesKeyByKeyTest.java index 537e8e62f5e..58e1a444695 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/states/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .states() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/states/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .withKey("test_key") @@ -110,6 +115,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").states().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").states().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").states().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesTest.java index 555515eb3bb..c00ee7abb64 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStatesTest.java @@ -90,6 +90,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/states?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").states().get().createHttpRequest(), "get", "test_projectKey/states", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .states() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/states?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").states().head().createHttpRequest(), "head", + "test_projectKey/states", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .post(com.commercetools.api.models.state.StateDraft.of()) @@ -115,6 +122,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").states().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").states().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").states().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .states() .post(com.commercetools.api.models.state.StateDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresByIDTest.java index db7f50f8422..bd67577ac9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/stores/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").stores().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/stores/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .withId("test_ID") @@ -108,6 +111,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresKeyByKeyTest.java index f76b9ff875f..7a743de0741 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresKeyByKeyTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/stores/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .stores() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/stores/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .withKey("test_key") @@ -110,6 +115,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stores().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresTest.java index 2c492671bca..d7fa5e69e5c 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyStoresTest.java @@ -90,6 +90,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/stores?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").stores().get().createHttpRequest(), "get", "test_projectKey/stores", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .stores() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/stores?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stores().head().createHttpRequest(), "head", + "test_projectKey/stores", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .post(com.commercetools.api.models.store.StoreDraft.of()) @@ -115,6 +122,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").stores().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stores().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").stores().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .stores() .post(com.commercetools.api.models.store.StoreDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDTest.java index 6ef457b91c2..241f19ed786 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsByIDTest.java @@ -66,6 +66,11 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/subscriptions/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .subscriptions() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/subscriptions/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .withId("test_ID") @@ -88,6 +93,7 @@ public static Object[][] requestWithMethodParameters() { public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsKeyByKeyTest.java index 0a8f5fbb2f3..b2bd13dfe39 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsKeyByKeyTest.java @@ -66,6 +66,11 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withKey("test_key").get().createHttpRequest(), "get", "test_projectKey/subscriptions/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .subscriptions() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/subscriptions/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .withKey("test_key") @@ -90,6 +95,7 @@ public static Object[][] requestWithMethodParameters() { public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsTest.java index bca809acc89..bb22f8912a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeySubscriptionsTest.java @@ -93,6 +93,13 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/subscriptions?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().get().createHttpRequest(), "get", "test_projectKey/subscriptions", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .subscriptions() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/subscriptions?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().head().createHttpRequest(), + "head", "test_projectKey/subscriptions", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .post(com.commercetools.api.models.subscription.SubscriptionDraft.of()) @@ -112,6 +119,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").subscriptions().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .subscriptions() .post(com.commercetools.api.models.subscription.SubscriptionDraft.of()), } }; diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesByIDTest.java index 4dd2aa4220f..c003379e84d 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesByIDTest.java @@ -75,6 +75,11 @@ public static Object[][] requestWithMethodParameters() { .withId("test_ID") .get() .createHttpRequest(), "get", "test_projectKey/tax-categories/test_ID", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .taxCategories() + .withId("test_ID") + .head() + .createHttpRequest(), "head", "test_projectKey/tax-categories/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() .withId("test_ID") @@ -116,6 +121,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesKeyByKeyTest.java index 29b6840226c..25b7d0cd904 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesKeyByKeyTest.java @@ -77,6 +77,11 @@ public static Object[][] requestWithMethodParameters() { .withKey("test_key") .get() .createHttpRequest(), "get", "test_projectKey/tax-categories/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .taxCategories() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/tax-categories/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() @@ -122,6 +127,7 @@ public static Object[][] executeMethodParameters() { .get() .withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesTest.java index 937a5a48544..11d4e51d017 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTaxCategoriesTest.java @@ -103,6 +103,13 @@ public static Object[][] requestWithMethodParameters() { "get", "test_projectKey/tax-categories?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().get().createHttpRequest(), "get", "test_projectKey/tax-categories", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .taxCategories() + .head() + .withWhere("where") + .createHttpRequest(), "head", "test_projectKey/tax-categories?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().head().createHttpRequest(), + "head", "test_projectKey/tax-categories", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() .post(com.commercetools.api.models.tax_category.TaxCategoryDraft.of()) @@ -128,6 +135,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").taxCategories().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .taxCategories() .post(com.commercetools.api.models.tax_category.TaxCategoryDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTest.java index 6db9099d999..eafbbf53459 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTest.java @@ -66,6 +66,8 @@ public static Object[][] requestWithMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").get().createHttpRequest(), "get", "test_projectKey", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").head().createHttpRequest(), "head", + "test_projectKey", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .post(com.commercetools.api.models.project.ProjectUpdate.of()) .createHttpRequest(), "post", "test_projectKey", } }; @@ -74,6 +76,7 @@ public static Object[][] requestWithMethodParameters() { @DataProvider public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .post(com.commercetools.api.models.project.ProjectUpdate.of()), } }; } diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesByIDTest.java index 5c848e4538f..d139f98e2ac 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").types().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/types/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").types().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/types/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .withId("test_ID") @@ -108,6 +111,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").types().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").types().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").types().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesKeyByKeyTest.java index f1799a8c02a..b9694a10bb5 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesKeyByKeyTest.java @@ -73,6 +73,11 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").types().withKey("test_key").get().createHttpRequest(), "get", "test_projectKey/types/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .types() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/types/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .withKey("test_key") @@ -108,6 +113,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").types().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").types().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").types().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesTest.java index 864568e9be9..5387a0097e9 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyTypesTest.java @@ -87,6 +87,11 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/types?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").types().get().createHttpRequest(), "get", "test_projectKey/types", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").types().head().withWhere("where").createHttpRequest(), + "head", "test_projectKey/types?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").types().head().createHttpRequest(), "head", + "test_projectKey/types", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .post(com.commercetools.api.models.type.TypeDraft.of()) @@ -112,6 +117,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").types().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").types().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").types().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .types() .post(com.commercetools.api.models.type.TypeDraft.of()) diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesByIDTest.java index d219714cc0a..2457fcf59c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesByIDTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesByIDTest.java @@ -73,6 +73,9 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withId("test_ID").get().createHttpRequest(), "get", "test_projectKey/zones/test_ID", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").zones().withId("test_ID").head().createHttpRequest(), + "head", "test_projectKey/zones/test_ID", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .withId("test_ID") @@ -108,6 +111,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withId("test_ID").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withId("test_ID").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withId("test_ID").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesKeyByKeyTest.java index 07728bec92a..b4b7116d399 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesKeyByKeyTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesKeyByKeyTest.java @@ -73,6 +73,11 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withKey("test_key").get().createHttpRequest(), "get", "test_projectKey/zones/key=test_key", }, + new Object[] { apiRoot.withProjectKey("test_projectKey") + .zones() + .withKey("test_key") + .head() + .createHttpRequest(), "head", "test_projectKey/zones/key=test_key", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .withKey("test_key") @@ -108,6 +113,7 @@ public static Object[][] executeMethodParameters() { return new Object[][] { new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withKey("test_key").get().withExpand("expand"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withKey("test_key").get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").zones().withKey("test_key").head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .withKey("test_key") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesTest.java index 9ebf6e30ef6..dc97384f1a7 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyZonesTest.java @@ -87,6 +87,11 @@ public static Object[][] requestWithMethodParameters() { .createHttpRequest(), "get", "test_projectKey/zones?var.varName=var.varName", }, new Object[] { apiRoot.withProjectKey("test_projectKey").zones().get().createHttpRequest(), "get", "test_projectKey/zones", }, + new Object[] { + apiRoot.withProjectKey("test_projectKey").zones().head().withWhere("where").createHttpRequest(), + "head", "test_projectKey/zones?where=where", }, + new Object[] { apiRoot.withProjectKey("test_projectKey").zones().head().createHttpRequest(), "head", + "test_projectKey/zones", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .post(com.commercetools.api.models.zone.ZoneDraft.of()) @@ -112,6 +117,8 @@ public static Object[][] executeMethodParameters() { .get() .withPredicateVar("varName", "var.varName"), }, new Object[] { apiRoot.withProjectKey("test_projectKey").zones().get(), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").zones().head().withWhere("where"), }, + new Object[] { apiRoot.withProjectKey("test_projectKey").zones().head(), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .zones() .post(com.commercetools.api.models.zone.ZoneDraft.of()) diff --git a/references.txt b/references.txt index 9fec2ce9c2c..d8c4fe8e735 100644 --- a/references.txt +++ b/references.txt @@ -128,3 +128,4 @@ c79d63cb4ea031447a5dfeea23dc05bb9398d727 316dfbe75db3fde272cabc091b54d14a67e330f2 cfb34c1d1b7549d9bfe759d13ca9357646371e72 00ec1791c7297ecf203797bcfe02ebad5c9c9a64 +da5022ed759c0ebb3b80c15eb62488c7584dfeba