@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.payments.Payment") @Deprecated public final class SetExternalId extends UpdateActionImpl<Payment>
externalId
property of a Payment
.
withPayment(client(), payment -> { final String externalId = randomKey(); final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, asList(SetExternalId.of(externalId)))); assertThat(updatedPayment.getExternalId()).isEqualTo(externalId); return updatedPayment; });
See the test code.
Payment.getExternalId()
Modifier and Type | Method and Description |
---|---|
String |
getExternalId()
Deprecated.
This method will be removed with the next major SDK update.
|
static SetExternalId |
of(String externalId)
Deprecated.
Creates a new update action from the given parameters.
|
static SetExternalId |
ofUnset()
Deprecated.
Creates a new update action to unset the
externalId property. |
getAction
@Nullable @Deprecated public String getExternalId()
public static SetExternalId of(@Nullable String externalId)
externalId
- the externalId
property Payment.getExternalId()
.SetExternalId
update action.public static SetExternalId ofUnset()
externalId
property.SetExternalId
update action.