class

ReferralOperation

Inherits Avram::Operation < Avram::Callbacks < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Avram::NeedyInitializer < Reference < Object

Constants

ATTRIBUTES = [user_order_id : Array(String), referrer_id : Array(String)] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

new(params : Avram::Paramable, user_order_id : Array(String) | Avram::Nothing = Avram::Nothing.new, referrer_id : Array(String) | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

new(user_order_id : Array(String) | Avram::Nothing = Avram::Nothing.new, referrer_id : Array(String) | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

Instance methods

attributes
Source
bonuses
Source
error_code
Source
order?
Source
referrer?
Source
referrer_id
Source
set_attributes(user_order_id : Array(String) | Avram::Nothing = Avram::Nothing.new, referrer_id : Array(String) | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

user_order_id
Source
valid?

Returns true if all attributes are valid, and there's no custom errors

Source

Macros

param_key(key)