class ReferralOperation

Defined in:

operations/referral_operation.cr

Constant Summary

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

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.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.


def self.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 Method Detail

def attributes #

[View source]
def bonuses : Float64 #

[View source]
def error_code : Int32 | Nil #

[View source]
def order? #

[View source]
def referrer? #

[View source]
def referrer_id #

[View source]
def run #

[View source]
def 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.


def user_order_id #

[View source]
def valid? #
Description copied from class Avram::Operation

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


[View source]

Macro Detail

macro param_key(key) #