#NEWLINE# def __init__( self , std_ent_cls_code = 'PPD' , trans_desc = '' , net_id_code = '' , term_id_code = '' , ref_info_1 = '' , ref_info_2 = '' , trans_serial_code = '' , trans_date = '' , trans_time = '' , terminal_loc = '' , terminal_city = '' , terminal_state = '' , trace_num = '' , auth_card_exp = '' , add_seq_num = '' , ent_det_seq_num = '' , pmt_rel_info = '' ) : #NEWLINE# #INDENT# '\n        Initializes and validates values in entry addenda rows\n        ' #NEWLINE# fields = locals ( ) . copy ( ) #NEWLINE# self . std_ent_cls_code = std_ent_cls_code #NEWLINE# for key in fields : #NEWLINE# #INDENT# if ( key == 'self' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( fields [ key ] != '' ) : #NEWLINE# #INDENT# self . __setattr__ ( key , fields [ key ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key in self . numeric_fields ) : #NEWLINE# #INDENT# self . __setattr__ ( key , self . make_zero ( self . field_lengths [ key ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key in self . alpha_numeric_fields ) : #NEWLINE# #INDENT# self . __setattr__ ( key , self . make_space ( self . field_lengths [ key ] ) )