@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.customers.Customer") public final class SetVatId extends UpdateActionImpl<Customer>
vatId
property of a Customer
.
withCustomer(client(), customer -> { assertThat(customer.getVatId()).isNull(); final String vatId = randomString(); final Customer updatedCustomer = client().executeBlocking(CustomerUpdateCommand.of(customer, SetVatId.of(vatId))); assertThat(updatedCustomer.getVatId()).isEqualTo(vatId); });
See the test code.
Customer.getVatId()
Modifier and Type | Method and Description |
---|---|
String |
getVatId() |
static SetVatId |
of(String vatId)
Creates a new update action from the given parameters.
|
static SetVatId |
ofUnset()
Creates a new update action to unset the
vatId property. |
getAction
public static SetVatId of(@Nullable String vatId)
vatId
- the vatId
property Customer.getVatId()
.SetVatId
update action.public static SetVatId ofUnset()
vatId
property.SetVatId
update action.