class UserOrder::SaveOperation

Direct Known Subclasses

Defined in:

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: delivery_point_type, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: delivery_point_id, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_date, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: delivered_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: total_cost, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: total_weight, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_time_interval, type: Int16, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: used_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses_state, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.new(params : Avram::Paramable, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.new(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.new(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Class Method Detail

def self.create(params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(params : Hash, **named_args, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(params : Hash, **named_args) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, with params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, params : Hash, **named_args, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, with params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, params : Hash, **named_args) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Instance Method Detail

def attributes #

def created_at #

def created_at=(_value) #

def delivered_at #

def delivered_at=(_value) #

def delivery_point_id #

def delivery_point_id=(_value) #

def delivery_point_type #

def delivery_point_type=(_value) #

def earned_bonuses #

def earned_bonuses=(_value) #

def earned_bonuses_state #

def earned_bonuses_state=(_value) #

def id #

def id=(_value) #

def permitted_params #

def planned_delivery_date #

def planned_delivery_date=(_value) #

def planned_delivery_time_interval #

def planned_delivery_time_interval=(_value) #

def required_attributes #

def set_attributes(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def set_created_at_from_param(_value) #

def set_delivered_at_from_param(_value) #

def set_delivery_point_id_from_param(_value) #

def set_delivery_point_type_from_param(_value) #

def set_earned_bonuses_from_param(_value) #

def set_earned_bonuses_state_from_param(_value) #

def set_id_from_param(_value) #

def set_planned_delivery_date_from_param(_value) #

def set_planned_delivery_time_interval_from_param(_value) #

def set_total_cost_from_param(_value) #

def set_total_weight_from_param(_value) #

def set_updated_at_from_param(_value) #

def set_used_bonuses_from_param(_value) #

def total_cost #

def total_cost=(_value) #

def total_weight #

def total_weight=(_value) #

def updated_at #

def updated_at=(_value) #

def used_bonuses #

def used_bonuses=(_value) #

Macro Detail

macro param_key(key) #