Class InviteRequest
Represents a request to send an SMS to a mobile phone number inviting someone to sign up to Humm.
Inherited Members
Namespace: Yort.Humm.InStore
Assembly: Yort.Humm.InStore.dll
Syntax
public sealed class InviteRequest : RequestBase
Properties
| Improve this Doc View SourceMobileNumber
Required. Gets or sets the mobile number to send the invitation to.
Declaration
[JsonProperty("x_mobile")]
public string MobileNumber { get; set; }
Property Value
Type | Description |
---|---|
String | The mobile phone number. |
Remarks
Maximum length of 10 digits.
PurchaseAmount
Gets or sets the amount of a initial purchase amount to generate a pre-approval code for after sign-up is complete.
Declaration
[JsonProperty("x_purchase_amount")]
public decimal PurchaseAmount { get; set; }
Property Value
Type | Description |
---|---|
Decimal | The purchase amount as a dollar value (i.e $20 would be 20.00). |
Methods
| Improve this Doc View SourceValidate()
Validates this instance.
Declaration
public override void Validate()
Overrides
Remarks
Ensures that MobileNumber is not null, empty string or only whitespace. Also ensure no property is larger than it's maximum allowed length (see individual property notes for details). Also ensures all base properties are valid, see Validate().