<s> from django . db import models <EOL> class AuthorizeAIMResponse ( models . Model ) : <EOL> RESPONSE_CODES = [ <EOL> ( <NUM_LIT:1> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT:2> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT:3> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT:4> , '<STR_LIT>' ) , <EOL> ] <EOL> ADDRESS_VERIFICATION_RESPONSE = [ <EOL> ( '<STR_LIT:A>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:B>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:E>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:N>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:P>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:R>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:S>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:X>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:Y>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> CARD_CODE_RESPONSES = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:M>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:N>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:P>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT:S>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> response_code = models . IntegerField ( choices = RESPONSE_CODES ) <EOL> response_reason_code = models . IntegerField ( blank = True ) <EOL> response_reason_text = models . TextField ( blank = True ) <EOL> authorization_code = models . CharField ( max_length = <NUM_LIT:8> ) <EOL> address_verification_response = models . CharField ( max_length = '<STR_LIT>' , choices = ADDRESS_VERIFICATION_RESPONSE ) <EOL> transaction_id = models . CharField ( max_length = <NUM_LIT:64> ) <EOL> invoice_number = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> description = models . CharField ( max_length = <NUM_LIT:255> , blank = True ) <EOL> amount = models . DecimalField ( max_digits = <NUM_LIT:16> , decimal_places = <NUM_LIT:2> ) <EOL> method = models . CharField ( max_length = <NUM_LIT:255> , blank = True ) <EOL> transaction_type = models . CharField ( max_length = <NUM_LIT:255> , blank = True ) <EOL> customer_id = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> first_name = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> last_name = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> company = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> address = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> city = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> state = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> zip_code = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> country = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> phone = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> fax = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> email = models . EmailField ( ) <EOL> shipping_first_name = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_last_name = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_company = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_address = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_city = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_state = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_zip_code = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> shipping_country = models . CharField ( max_length = <NUM_LIT:64> , blank = True ) <EOL> card_code_response = models . CharField ( max_length = '<STR_LIT>' , choices = CARD_CODE_RESPONSES , help_text = u'<STR_LIT>' ) <EOL> class Meta : <EOL> app_label = __name__ . split ( "<STR_LIT:.>" ) [ <NUM_LIT:0> ] <EOL> def __unicode__ ( self ) : <EOL> return "<STR_LIT>" % ( self . get_response_code_display ( ) , self . amount ) </s>
