public static ChangeTaxCategory of(final ResourceIdentifier<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory); } }
@Test public void changeTaxCategory() throws Exception { final TaxCategory newTaxCategory = TaxCategoryFixtures.defaultTaxCategory(client()); withUpdateableShippingMethod(client(), shippingMethod -> { assertThat(shippingMethod.getTaxCategory().getId()).isNotEqualTo(newTaxCategory.getId()); final ShippingMethodUpdateCommand cmd = ShippingMethodUpdateCommand.of(shippingMethod, ChangeTaxCategory.of(newTaxCategory)); final ShippingMethod updatedShippingMethod = client().executeBlocking(cmd); assertThat(updatedShippingMethod.getTaxCategory().getId()).isEqualTo(newTaxCategory.getId()); return updatedShippingMethod; }); }
public static ChangeTaxCategory of(final ResourceIdentifier<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory); } }
public static ChangeTaxCategory of(final Referenceable<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory.toReference()); } }
public static ChangeTaxCategory of(final Referenceable<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory.toReference()); } }
public static ChangeTaxCategory of(final Referenceable<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory.toReference()); }
public static ChangeTaxCategory of(final Referenceable<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory.toReference()); }