#NEWLINE# def refresh_from( self , values , api_key ) : #NEWLINE# #INDENT# self . api_key = api_key #NEWLINE# for ( k , v ) in six . iteritems ( values ) : #NEWLINE# #INDENT# if ( ( k == 'id' ) and ( self . id != v ) ) : #NEWLINE# #INDENT# self . id = v #NEWLINE# #UNINDENT# if ( k in self . _immutable_values ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . __dict__ [ k ] = convert_to_easypost_object ( v , self , self , k ) #NEWLINE# self . _values . add ( k ) #NEWLINE# self . _transient_values . discard ( k ) #NEWLINE# self . _unsaved_values . discard ( k )