id method
Sets the unique identifier for this Offer.
The id
parameter must be a non-empty String that uniquely identifies the Offer.
- Parameter id: A String representing the unique identifier for the Offer. Must not be
nil
or empty. - Returns: The modified Offer object.
The id
parameter is not set, a random UUID will be used when adding the Offer in TikiSdk.
Additionally, this method returns the Offer object to enable convenient chaining of method calls during offer initialization.
Implementation
Offer id(String id) {
_id = id;
return this;
}