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