@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.payments.Payment") public final class SetInterfaceId extends UpdateActionImpl<Payment>
interfaceId property of a Payment.
withPayment(client(), payment -> { final String interfaceId =randomKey(); final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, SetInterfaceId.of(interfaceId))); assertThat(updatedPayment.getInterfaceId()).isEqualTo(interfaceId); return updatedPayment; });See the test code.
Payment.getInterfaceId()| Modifier and Type | Method and Description |
|---|---|
String |
getInterfaceId() |
static SetInterfaceId |
of(String interfaceId)
Creates a new update action from the given parameters.
|
static SetInterfaceId |
ofUnset()
Creates a new update action to unset the
interfaceId property. |
getActionpublic static SetInterfaceId of(@Nullable String interfaceId)
interfaceId - the interfaceId property Payment.getInterfaceId().SetInterfaceId update action.public static SetInterfaceId ofUnset()
interfaceId property.SetInterfaceId update action.