The ReferralsRepository interface invokes and manages referral-related REST API requests. Use this class to interact with the Salesforce Referral Marketing APIs and manage referral-related operations.
The ReferralsRepository interface class provides these methods:
Description: The name of the country of the member.
email
Type: String
Description: Required. The email ID of the member.
enrollmentChannel
Type: String
Description: Channel used to join the referral program. Possible values are CallCenter, Email, Franchise, Mobile, Partner, Pos, Print, Social, Store, or Web. The default value is Email.
firstName
Type: String
Description: Required. The first name of the member.
lastName
Type: String
Description: Required. The last name of the member.
memberStatus
Type: String
Description: Status of the new advocate after enrollment. Possible values are Active, Inactive, or a custom value defined in your org. For example, if an advocate must be evaluated before confirming enrollment, you can create a status called On Hold and assign it to this field. The default value is Active.
promotionName
Type: String
Description: Required. The promotion name to enroll for.
promotionCode
Type: String
Description: Required. The promotion code to enroll for.
state
Type: String
Description: The name of the state of the member.
transactionalJournalFrequency
Type: String
Description: Frequency at which transaction statements must be generated for the advocate. Possible values are Monthly or Quarterly. The default value is Monthly.
transactionalJournalMethod
Type: String
Description: Preferred method of receiving transaction journal statements. Possible values are Email or Mail. The default value is Email.